(Fstring_to_number): Don't recognize floating point if base is not 10.
authortomo <tomo>
Mon, 15 Nov 1999 19:24:50 +0000 (19:24 +0000)
committertomo <tomo>
Mon, 15 Nov 1999 19:24:50 +0000 (19:24 +0000)
src/data.c

index 20100db..310d76a 100644 (file)
@@ -1068,7 +1068,7 @@ Floating point numbers always use base 10.
     p++;
 
 #ifdef LISP_FLOAT_TYPE
-  if (isfloat_string (p))
+  if (isfloat_string (p) && b == 10)
     return make_float (atof (p));
 #endif /* LISP_FLOAT_TYPE */