projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b4323
)
Use FLO:NEGATE, not (FLO:- 0. ...), to apply sign in NUMBER->STRING.
author
Taylor R Campbell
<campbell@mumble.net>
Sun, 23 Feb 2014 17:10:24 +0000
(17:10 +0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Sun, 23 Feb 2014 17:10:30 +0000
(17:10 +0000)
src/runtime/numpar.scm
patch
|
blob
|
history
diff --git
a/src/runtime/numpar.scm
b/src/runtime/numpar.scm
index e4246022968c569c0200eb06b91e11a60eec541d..7da8450b614ed529f11072a8e5a07034a7985bba 100644
(file)
--- a/
src/runtime/numpar.scm
+++ b/
src/runtime/numpar.scm
@@
-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))))