(reader): SHRT_MAX -> SYMBOL_NUMBER_MAX.

This commit is contained in:
Paul Eggert
2002-10-05 05:47:51 +00:00
parent 01eb033cf5
commit 242a6e484e

View File

@@ -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);