Skip to content
Snippets Groups Projects
Commit 2e346a66 authored by toy's avatar toy
Browse files

Correct typo: should coerce 0 to the same type as the float!

parent 9fbccc50
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.37 2001/04/10 22:35:09 pw Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.38 2001/04/16 16:11:17 toy Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -850,7 +850,7 @@
(,op (rational x) y)))
(((foreach bignum fixnum ratio) float)
(if (float-infinity-p y)
(,op (coerce 0 '(dispatch-type x)) y)
(,op (coerce 0 '(dispatch-type y)) y)
(,op x (rational y))))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment