projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.15.8:
[sbcl.git]
/
src
/
code
/
irrat.lisp
diff --git
a/src/code/irrat.lisp
b/src/code/irrat.lisp
index
e7131b0
..
b821b7a
100644
(file)
--- a/
src/code/irrat.lisp
+++ b/
src/code/irrat.lisp
@@
-118,7
+118,10
@@
#!+sb-doc
"Return BASE raised to the POWER."
(if (zerop power)
#!+sb-doc
"Return BASE raised to the POWER."
(if (zerop power)
- (1+ (* base power))
+ (let ((result (1+ (* base power))))
+ (if (and (floatp result) (float-nan-p result))
+ (float 1 result)
+ result))
(labels (;; determine if the double float is an integer.
;; 0 - not an integer
;; 1 - an odd int
(labels (;; determine if the double float is an integer.
;; 0 - not an integer
;; 1 - an odd int