aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-04-21 11:57:37 -0700
committerPaul Eggert2011-04-21 11:57:37 -0700
commitd78050d6bab1f1add4284163b8fc474495ac6580 (patch)
tree19bafdabc58b1758fa4f240bd63a2da402502546 /src/ChangeLog
parent452f4150134e4ba7bbd2bad9ce87d19c200505de (diff)
downloademacs-d78050d6bab1f1add4284163b8fc474495ac6580.tar.gz
emacs-d78050d6bab1f1add4284163b8fc474495ac6580.zip
* lread.c (string_to_number): Use strtoumax, to convert more integers without overflow.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2b9978f3d6a..0ea90a4d8e5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -11,7 +11,8 @@
11 parsing non-base-10 numbers, as the documentation specifies. 11 parsing non-base-10 numbers, as the documentation specifies.
12 * lisp.h (string_to_number): New decl, replacing ... 12 * lisp.h (string_to_number): New decl, replacing ...
13 (isfloat_string): Remove. 13 (isfloat_string): Remove.
14 * lread.c (read1): Do not accept +. and -. as integers; this 14 * lread.c: Include <inttypes.h>, for uintmax_t and strtoimax.
15 (read1): Do not accept +. and -. as integers; this
15 appears to have been a coding error. Similarly, do not accept 16 appears to have been a coding error. Similarly, do not accept
16 strings like +-1e0 as floating point numbers. Do not report 17 strings like +-1e0 as floating point numbers. Do not report
17 overflow for integer overflows unless the base is not 10 which 18 overflow for integer overflows unless the base is not 10 which
@@ -25,7 +26,9 @@
25 (string_to_number): New function, replacing isfloat_string. 26 (string_to_number): New function, replacing isfloat_string.
26 This function checks for valid syntax and produces the resulting 27 This function checks for valid syntax and produces the resulting
27 Lisp float number too. Rework it so that string-to-number 28 Lisp float number too. Rework it so that string-to-number
28 no longer mishandles examples like "1.0e+". 29 no longer mishandles examples like "1.0e+". Use strtoimax,
30 so that overflow for non-base-10 numbers is reported only when
31 there's no portable and simple way to convert to floating point.
29 32
302011-04-20 Paul Eggert <eggert@cs.ucla.edu> 332011-04-20 Paul Eggert <eggert@cs.ucla.edu>
31 34