Declare the argument type for float-radix
authorPaul Khuong <pvk@pvk.ca>
Mon, 20 May 2013 03:27:26 +0000 (23:27 -0400)
committerPaul 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

index 5c53e87..a3a0114 100644 (file)
 (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