From: Christophe Rhodes Date: Wed, 3 Sep 2003 09:52:04 +0000 (+0000) Subject: 0.8.3.30: X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=223e5d1767a058283731879358279385d871ec50;p=sbcl.git 0.8.3.30: Stylistic change in COERCE-TO-COMPLEX-TYPE: ... (subtypep (type-of ...) 'double-float)??? Change it to (typep ... 'double-float). ... adjust some comments for reality. --- diff --git a/src/code/irrat.lisp b/src/code/irrat.lisp index 7fce068..c22fd93 100644 --- a/src/code/irrat.lisp +++ b/src/code/irrat.lisp @@ -701,9 +701,11 @@ (defun coerce-to-complex-type (x y z) (declare (double-float x y) (number z)) - (if (subtypep (type-of (realpart z)) 'double-float) + (if (typep (realpart z) 'double-float) (complex x y) - ;; Convert anything that's not a DOUBLE-FLOAT to a SINGLE-FLOAT. + ;; Convert anything that's not already a DOUBLE-FLOAT (because + ;; the initial argument was a (COMPLEX DOUBLE-FLOAT) and we + ;; haven't done anything to lose precision) to a SINGLE-FLOAT. (complex (float x 1f0) (float y 1f0)))) diff --git a/version.lisp-expr b/version.lisp-expr index 791ca00..3d5c056 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.8.3.29" +"0.8.3.30"