Fix some things that I was mistakenly testing with an old compiler.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 30 Nov 2018 07:11:27 +0000 (07:11 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 30 Nov 2018 07:11:27 +0000 (07:11 +0000)
commit2dbeb954b3785d81ec61e95663050fb993817414
tree847ed267cada1b7f8ae58632bf0f8b883bf63464
parent4110934060a92803966e70b39c2ee6e25bb25d08
Fix some things that I was mistakenly testing with an old compiler.

sqrt should not trap on qNaN, which requires some care with
comparisons.  Further, since sqrt(-0) is supposed to be -0, we can't
just use flo:safe-negative? (which returns true for -0.); we must
instead use (flo:safe< x 0.) (which returns false for -0.).
src/runtime/arith.scm
tests/runtime/test-arith.scm