aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2016-12-10 15:36:11 +0100
committerPhilipp Stephani2016-12-23 13:21:34 +0100
commit6eaadcc7c821b7a8c75ce6d1d56cd7f50898f809 (patch)
tree48b8099a287a9a16387e8be86d00aac7406cec6a /src
parent831bef1a469356b82892c163f33c9c65ccd75c7c (diff)
downloademacs-6eaadcc7c821b7a8c75ce6d1d56cd7f50898f809.tar.gz
emacs-6eaadcc7c821b7a8c75ce6d1d56cd7f50898f809.zip
Treat incomplete integer literals as errors
See Bug#25120. * src/lread.c (read_integer): Treat incomplete integer literals as errors. * test/src/lread-tests.el (lread-empty-int-literal): New unit test for incomplete integer literals.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index fdbf0329118..35348f1ddb8 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -2536,7 +2536,7 @@ read_integer (Lisp_Object readcharfun, EMACS_INT radix)
2536 *p = '\0'; 2536 *p = '\0';
2537 } 2537 }
2538 2538
2539 if (! valid) 2539 if (valid != 1)
2540 { 2540 {
2541 sprintf (buf, "integer, radix %"pI"d", radix); 2541 sprintf (buf, "integer, radix %"pI"d", radix);
2542 invalid_syntax (buf); 2542 invalid_syntax (buf);