summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-05-20 18:26:15 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2021-05-27 14:16:28 +0200
commitde45864cf787ce244b0d97e7cf523a6e03743f10 (patch)
tree903951ab9e9bf58b91e3f591f4a9d80603d112fa /lisp/emacs-lisp
parent40d2970f4360bd942ffc3f86db9ff1499a5a5393 (diff)
downloademacs-de45864cf787ce244b0d97e7cf523a6e03743f10.tar.gz
emacs-de45864cf787ce244b0d97e7cf523a6e03743f10.tar.bz2
emacs-de45864cf787ce244b0d97e7cf523a6e03743f10.zip
Fix lexing of numbers with trailing decimal point and exponent
Numbers with a trailing dot and an exponent were incorrectly read as integers (with the exponent ignored) instead of the floats they should be. For example, 1.e6 was read as the integer 1, not 1000000.0 as every sane person would agree was meant. (Bug#48678) Numbers with a trailing dot but no exponent are still read as integers. * src/lread.c (string_to_number): Fix float lexing. * test/src/lread-tests.el (lread-float): Add test. * doc/lispref/numbers.texi (Float Basics): Clarify syntax.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions