projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243d0f6
)
Declare the argument type for float-radix
author
Paul Khuong
<pvk@pvk.ca>
Mon, 20 May 2013 03:27:26 +0000
(23:27 -0400)
committer
Paul Khuong
<pvk@pvk.ca>
Mon, 20 May 2013 05:05:51 +0000
(
01:05
-0400)
Otherwise, inlined copies sometimes skip the type check.
src/code/float.lisp
patch
|
blob
|
history
diff --git
a/src/code/float.lisp
b/src/code/float.lisp
index
5c53e87
..
a3a0114
100644
(file)
--- a/
src/code/float.lisp
+++ b/
src/code/float.lisp
@@
-170,7
+170,7
@@
(defun float-radix (x)
#!+sb-doc
"Return (as an integer) the radix b of its floating-point argument."
- (declare (ignore x))
+ (declare (ignore x) (type float x))
2)
\f
;;;; INTEGER-DECODE-FLOAT and DECODE-FLOAT