Skip to content
Snippets Groups Projects
Commit 1b7178f9 authored by gerd's avatar gerd
Browse files

* src/code/numbers.lisp (two-arg-+/-): Fix last change. 12.1.5.2

	says 0 is supplied as imagpart.
parent b28a9abd
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.53 2003/09/05 11:04:59 gerd Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.54 2003/09/05 11:25:28 gerd Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -441,9 +441,11 @@
((complex complex)
(canonical-complex (,op (realpart x) (realpart y))
(,op (imagpart x) (imagpart y))))
(((foreach bignum fixnum ratio single-float double-float
#+long-float long-float) complex)
(,op (complex x) y))
(complex (,op x (realpart y)) (,op 0 (imagpart y))))
((complex (or rational float))
(complex (,op (realpart x) y) (imagpart x)))
......
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