]> git.saurik.com Git - bison.git/blobdiff - src/reader.c
(debug_lbitset): Do not assume that bitset_word is the same width as
[bison.git] / 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);