]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fstring_to_number): Handle NEGATIVE for floats too.
authorKarl Heuer <kwzh@gnu.org>
Wed, 15 Oct 1997 23:12:54 +0000 (23:12 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 15 Oct 1997 23:12:54 +0000 (23:12 +0000)
src/data.c

index 8b970959f9e98f1c71d045ffeea09465e0b47d2e..8a3d7191f07eeaca5e320b2464b21ffd0e279c85 100644 (file)
@@ -1997,7 +1997,7 @@ Floating point numbers always use base 10.")
   
 #ifdef LISP_FLOAT_TYPE
   if (isfloat_string (p))
-    return make_float (atof (p));
+    return make_float (negative * atof (p));
 #endif /* LISP_FLOAT_TYPE */
 
   while (1)