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