mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
(< +nan.0 n) was yielding #t for fixnum n, and similarly for (<= +nan.0 n) and (> n +nan.0) and so on. This also caused (negative? +nan.0) to return #t. It just happened that NaNs were less than all fixnums: if a conditional was written the other way around then NaNs would have been greater than all fixnums instead. The flonum case was sort of "accidentally" correct, but if a conditional was written the other way around then NaNs would be both less than or equal to and greater than all or equal to all flonums (but still not equal). For both cases check for NaNs after getting the flonum values. |
||
---|---|---|
.. | ||
basic | ||
build | ||
ffi | ||
foreign | ||
install | ||
memory | ||
run | ||
snow | ||
division-tests.scm | ||
lib-tests.scm | ||
r5rs-tests.scm | ||
r7rs-tests.scm | ||
re-tests.txt | ||
syntax-tests.scm | ||
unicode-tests.scm |