[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: supercollider:[9623] trunk/Source/lang/LangSource/PyrMathOps. cpp
Revision: 9623
http://supercollider.svn.sourceforge.net/supercollider/?rev=9623&view=rev
Author: timblech
Date: 2009-12-17 09:08:32 +0000 (Thu, 17 Dec 2009)
Log Message:
-----------
fix opSign: set to float, not to int
Signed-off-by: Tim Blechmann <tim@xxxxxxxxxx>
Modified Paths:
--------------
trunk/Source/lang/LangSource/PyrMathOps.cpp
Modified: trunk/Source/lang/LangSource/PyrMathOps.cpp
===================================================================
--- trunk/Source/lang/LangSource/PyrMathOps.cpp 2009-12-17 09:07:33 UTC (rev 9622)
+++ trunk/Source/lang/LangSource/PyrMathOps.cpp 2009-12-17 09:08:32 UTC (rev 9623)
@@ -218,7 +218,7 @@
case opCeil : SetRaw(a, ceil(slotRawFloat(a))); break;
case opFloor : SetRaw(a, floor(slotRawFloat(a))); break;
case opFrac : SetRaw(a, sc_frac(slotRawFloat(a))); break;
- case opSign : SetRaw(a, slotRawFloat(a) > 0. ? 1 : (slotRawFloat(a) == 0 ? 0 : -1)); break;
+ case opSign : SetRaw(a, slotRawFloat(a) > 0. ? 1.0 : (slotRawFloat(a) == 0 ? 0.0 : -1.0)); break;
case opSquared : SetRaw(a, slotRawFloat(a) * slotRawFloat(a)); break;
case opCubed : SetRaw(a, slotRawFloat(a) * slotRawFloat(a) * slotRawFloat(a)); break;
case opSqrt : SetRaw(a, sqrt(slotRawFloat(a))); break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/