From b28a9abdea9396a1008221f86177c7ee7c567f90 Mon Sep 17 00:00:00 2001 From: gerd <gerd> Date: Fri, 5 Sep 2003 11:04:59 +0000 Subject: [PATCH] * src/code/numbers.lisp (two-arg-+/-) <float/complex>: Avoid applying unary +/- to 0.0 which might give a signed zero. --- code/numbers.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/numbers.lisp b/code/numbers.lisp index 34a370fd6..db8407791 100644 --- a/code/numbers.lisp +++ b/code/numbers.lisp @@ -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.52 2003/09/05 10:49:15 gerd Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.53 2003/09/05 11:04:59 gerd Exp $") ;;; ;;; ********************************************************************** ;;; @@ -443,7 +443,7 @@ (,op (imagpart x) (imagpart y)))) (((foreach bignum fixnum ratio single-float double-float #+long-float long-float) complex) - (complex (,op x (realpart y)) (,op (imagpart y)))) + (,op (complex x) y)) ((complex (or rational float)) (complex (,op (realpart x) y) (imagpart x))) -- GitLab