Clozure / ccl

Clozure Common Lisp
http://ccl.clozure.com
Apache License 2.0
850 stars 103 forks source link

%/-2-into incorrect return value in 1.12.1 #417

Closed martinfraserbrooks closed 2 years ago

martinfraserbrooks commented 2 years ago

Clozure Common Lisp Version 1.12.1 DarwinX8664 ? (setf a (ccl::%make-ratio 1 2) b (ccl::%make-ratio 3 4) c (ccl::%make-ratio 0 0)) 0/0 ? (ccl::/-2-into a b c) 3


Whereas in 1.12 it works correctly. ? (setf a (ccl::%make-ratio 1 2) b (ccl::%make-ratio 3 4) c (ccl::%make-ratio 0 0)) 0/0 ? (ccl::/-2-into a b c) 2/3

svspire commented 2 years ago

This appears to have been fixed in c0471a853905a6751426a08a7f31a3d989594326

martinfraserbrooks commented 2 years ago

I just now built 1.12.1 -- the problem remains:

Clozure Common Lisp Version 1.12.1 (v1.12.1-13-g0f6d38ec) DarwinX8664

? (setf a (ccl::%make-ratio 1 2) b (ccl::%make-ratio 3 4) c (ccl::%make-ratio 0 0)) 0/0 ? (ccl::/-2-into a b c) 3