changeset 39775:280975f8c65e

(Fstring_to_number): Use make_fixnum_or_float.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 11 Oct 2001 15:38:18 +0000
parents b34a792f4234
children a3873ce994df
files src/data.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Thu Oct 11 15:37:39 2001 +0000
+++ b/src/data.c	Thu Oct 11 15:38:18 2001 +0000
@@ -2353,10 +2353,7 @@
 	  v = v * b + digit;
 	}
 
-      if (v > (EMACS_UINT) (VALMASK >> 1))
-	val = make_float (sign * v);
-      else
-	val = make_number (sign * (int) v);
+      val = make_fixnum_or_float (sign * v);
     }
 
   return val;