pnkfelix / larceny-test

test import of trac db
Other
2 stars 0 forks source link

interpreter returns 0.0 instead of -0.0 for (- 0.0) #588

Open larceny-trac-import opened 11 years ago

larceny-trac-import commented 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).

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
larceny-trac-import commented 11 years ago

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.