]> git.saurik.com Git - bison.git/commitdiff
(reader): SHRT_MAX -> SYMBOL_NUMBER_MAX.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Oct 2002 05:47:51 +0000 (05:47 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Oct 2002 05:47:51 +0000 (05:47 +0000)
src/reader.c

index d7527158aca5549dc388a416dad300191056f371..4c968952a9b8e0a9b3a7eaff8ac58e4cdf4035c8 100644 (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);