mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-24 08:28:12 +00:00
(reader): SHRT_MAX -> SYMBOL_NUMBER_MAX.
This commit is contained in:
1 parent
01eb033cf5
commit
242a6e484e
1 file changed
+2
-2
+2
-2
@@ -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