mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
(reader): SHRT_MAX -> SYMBOL_NUMBER_MAX.
This commit is contained in:
@@ -541,9 +541,9 @@ reader (void)
|
||||
grammar = p;
|
||||
}
|
||||
|
||||
if (nsyms > SHRT_MAX)
|
||||
if (SYMBOL_NUMBER_MAX < nsyms)
|
||||
fatal (_("too many symbols (tokens plus nonterminals); maximum %d"),
|
||||
SHRT_MAX);
|
||||
SYMBOL_NUMBER_MAX);
|
||||
|
||||
assert (nsyms == ntokens + nvars);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user