]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fstring_to_number): Don't recognize floating point if base is not 10.
authorKenichi Handa <handa@m17n.org>
Mon, 12 Oct 1998 11:54:43 +0000 (11:54 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 12 Oct 1998 11:54:43 +0000 (11:54 +0000)
src/data.c

index 7f8f30ce0884be6f6c837bb19e348c34798b14f2..f704c8fa049ae69336a122f562a7a6c60458fa8a 100644 (file)
@@ -2108,7 +2108,7 @@ It ignores leading spaces and tabs.\n\
 \n\
 If BASE, interpret STRING as a number in that base.  If BASE isn't\n\
 present, base 10 is used.  BASE must be between 2 and 16 (inclusive).\n\
-Floating point numbers always use base 10.")
+If the base used is not 10, floating point is not recognized.")
    (string, base)
      register Lisp_Object string, base;
 {
@@ -2144,7 +2144,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 (negative * atof (p));
 #endif /* LISP_FLOAT_TYPE */