From: Paul Eggert Date: Thu, 21 Apr 2011 19:40:13 +0000 (-0700) Subject: strtoimax -> strtoumax, fixing a typo. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~229 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc0a5c13baf196e0f4b1554425459cdb6665fbc5;p=emacs.git strtoimax -> strtoumax, fixing a typo. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0ea90a4d8e5..f5239b2e046 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -11,7 +11,7 @@ parsing non-base-10 numbers, as the documentation specifies. * lisp.h (string_to_number): New decl, replacing ... (isfloat_string): Remove. - * lread.c: Include , for uintmax_t and strtoimax. + * lread.c: Include , for uintmax_t and strtoumax. (read1): Do not accept +. and -. as integers; this appears to have been a coding error. Similarly, do not accept strings like +-1e0 as floating point numbers. Do not report @@ -26,7 +26,7 @@ (string_to_number): New function, replacing isfloat_string. This function checks for valid syntax and produces the resulting Lisp float number too. Rework it so that string-to-number - no longer mishandles examples like "1.0e+". Use strtoimax, + no longer mishandles examples like "1.0e+". Use strtoumax, so that overflow for non-base-10 numbers is reported only when there's no portable and simple way to convert to floating point.