changeset 23420:460aba3ec682

(Fstring_to_number): Don't recognize floating point if base is not 10.
author Kenichi Handa <handa@m17n.org>
date Mon, 12 Oct 1998 11:54:43 +0000
parents c251dd6b289e
children e89686024d36
files src/data.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Mon Oct 12 06:13:42 1998 +0000
+++ b/src/data.c	Mon Oct 12 11:54:43 1998 +0000
@@ -2108,7 +2108,7 @@
 \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 @@
     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 */