[svn:parrot] r39538 - trunk/src/string
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat Jun 13 22:43:13 UTC 2009
Author: bacek
Date: Sat Jun 13 22:43:12 2009
New Revision: 39538
URL: https://trac.parrot.org/parrot/changeset/39538
Log:
[cage] Don't use multiplication to change sign in str_to_num. Just change sign.
Modified:
trunk/src/string/api.c
Modified: trunk/src/string/api.c
==============================================================================
--- trunk/src/string/api.c Sat Jun 13 19:17:13 2009 (r39537)
+++ trunk/src/string/api.c Sat Jun 13 22:43:12 2009 (r39538)
@@ -2319,7 +2319,8 @@
f = mantissa + (1.0 * d / powl(10, d_length));
}
- f = f * sign;
+ if (sign < 0)
+ f = -f;
if (e) {
if (e_sign == 1)
More information about the parrot-commits
mailing list