Use FLO:NEGATE, not (FLO:- 0. ...), to apply sign in NUMBER->STRING.
authorTaylor R Campbell <campbell@mumble.net>
Sun, 23 Feb 2014 17:10:24 +0000 (17:10 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sun, 23 Feb 2014 17:10:30 +0000 (17:10 +0000)
src/runtime/numpar.scm

index e4246022968c569c0200eb06b91e11a60eec541d..7da8450b614ed529f11072a8e5a07034a7985bba 100644 (file)
@@ -352,8 +352,8 @@ USA.
        (define-integrable (finish-flonum x power-of-10)
          (if (eq? #\- sign)
              (if (eq? exponent abs-exponent)
-                 (flo:- 0. (flo:* x power-of-10))
-                 (flo:- 0. (flo:/ x power-of-10)))
+                 (flo:negate (flo:* x power-of-10))
+                 (flo:negate (flo:/ x power-of-10)))
              (if (eq? exponent abs-exponent)
                  (flo:* x power-of-10)
                  (flo:/ x power-of-10))))