Skip to content

Commit

Permalink
1.0.19.32: Small bugfixes
Browse files Browse the repository at this point in the history
 * Modify a couple number functions to avoid silently executing
   the default case even when the argument isn't a number.

 * Fix an obscure bug in MERGE-LETS.
  • Loading branch information
pkhuong committed Aug 20, 2008
1 parent 2133b26 commit 332e4d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/code/numbers.lisp
Expand Up @@ -238,7 +238,7 @@
(defun realpart (number)
#!+sb-doc
"Extract the real part of a number."
(typecase number
(etypecase number
#!+long-float
((complex long-float)
(truly-the long-float (realpart number)))
Expand All @@ -248,13 +248,13 @@
(truly-the single-float (realpart number)))
((complex rational)
(sb!kernel:%realpart number))
(t
(number
number)))

(defun imagpart (number)
#!+sb-doc
"Extract the imaginary part of a number."
(typecase number
(etypecase number
#!+long-float
((complex long-float)
(truly-the long-float (imagpart number)))
Expand All @@ -266,13 +266,14 @@
(sb!kernel:%imagpart number))
(float
(* 0 number))
(t
(number
0)))

(defun conjugate (number)
#!+sb-doc
"Return the complex conjugate of NUMBER. For non-complex numbers, this is
an identity."
(declare (type number number))
(if (complexp number)
(complex (realpart number) (- (imagpart number)))
number))
Expand Down
2 changes: 2 additions & 0 deletions src/compiler/locall.lisp
Expand Up @@ -855,6 +855,8 @@
(setf (lambda-physenv clambda) home-physenv)

(when physenv
(unless home-physenv
(setf home-physenv (get-lambda-physenv home)))
(setf (physenv-nlx-info home-physenv)
(nconc (physenv-nlx-info physenv)
(physenv-nlx-info home-physenv))))
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -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".)
"1.0.19.31"
"1.0.19.32"

0 comments on commit 332e4d9

Please sign in to comment.