Make sure READ-FLOAT returns a float.
authorRobert Smith <quad@symbo1ics.com>
Sat, 27 Apr 2013 22:20:54 +0000 (15:20 -0700)
committerRobert Smith <quad@symbo1ics.com>
Sat, 27 Apr 2013 22:20:54 +0000 (15:20 -0700)
Make sure READ-FLOAT returns a float during cross-compilation. (This strategy just embeds a float into the calculation as opposed to an explicit conversion.)

src/read.lisp

index c99604a..b2d8b65 100644 (file)
             (incf index))))
       (unless (= index size) (return))
       ;; Everything went ok, we have a float
-      (/ (* sign (expt 10 (* exponent-sign exponent)) number) divisor))))
+      ;; XXX: Use FLOAT when implemented.
+      (/ (* sign (expt 10.0d0 (* exponent-sign exponent)) number) divisor))))
 
 
 (defun !parse-integer (string junk-allow)