projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85d0c8a
)
lexer: Issue error message in forgotten case in lex_force_int_range().
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 6 Dec 2021 17:02:55 +0000
(09:02 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 6 Dec 2021 17:03:45 +0000
(09:03 -0800)
Found by inspection.
src/language/lexer/lexer.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/lexer.c
b/src/language/lexer/lexer.c
index d94ae9df7ca05671214f9314dabc2bf99b93f2d1..dd06eeee866b122a32957bf96711f79fbd7e41c5 100644
(file)
--- a/
src/language/lexer/lexer.c
+++ b/
src/language/lexer/lexer.c
@@
-888,6
+888,14
@@
lex_force_int_range (struct lexer *lexer, const char *name, long min, long max)
else
lex_error (lexer, _("Expected positive integer."));
}
+ else
+ {
+ if (name)
+ lex_error (lexer, _("Expected integer %ld or greater for %s."),
+ min, name);
+ else
+ lex_error (lexer, _("Expected integer %ld or greater."), min);
+ }
}
else if (report_upper_bound)
{