Open larceny-trac-import opened 11 years ago
_Reported by: will on Thu Aug 14 11:58:39 2008 _ The interpreter returns 0.0 instead of -0.0 for (- 0.0).
0.0
-0.0
(- 0.0)
In compiled code, (- 0.0) correctly returns -0.0.
This must have something to do with the interpreter's handling of the unary - primitive, because the following work correctly:
-
> ((values -) 0.0) -0.0 > (let ((f -)) (f 0.0)) -0.0
Author: lth On what platform? On both x86 (compiled for linux-el but running under Cygwin) and ARM the interpreter returns -0.0 for (- 0.0) in 0.98b1.
_Reported by: will on Thu Aug 14 11:58:39 2008 _ The interpreter returns
0.0
instead of-0.0
for(- 0.0)
.In compiled code,
(- 0.0)
correctly returns-0.0
.This must have something to do with the interpreter's handling of the unary
-
primitive, because the following work correctly: