]> git.eshelyaron.com Git - emacs.git/commit
Lisp reader now checks for integer overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Mar 2018 17:16:29 +0000 (10:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Mar 2018 18:03:07 +0000 (11:03 -0700)
commit6b3d01dad415230ad0bd0d01a05351d7a8b0e8c3
treed49bf4520d6afc830aa9d016be3d57349b251c4f
parent3409fe0362c52127c52f854a7300f4dde4b8fffe
Lisp reader now checks for integer overflow

* doc/lispref/numbers.texi (Integer Basics), etc/NEWS:
Document this.
* src/lisp.h (S2N_IGNORE_TRAILING, S2N_OVERFLOW_TO_FLOAT):
New constants.
* src/lread.c (string_to_number): Change trailing bool arg to
integer argument with flags, to support S2N_OVERFLOW_TO_FLOAT.
All uses changed.
* test/src/editfns-tests.el (read-large-integer): New test.
doc/lispref/numbers.texi
etc/NEWS
src/data.c
src/lisp.h
src/lread.c
src/process.c
test/src/editfns-tests.el