(set_goto_map): Don't allow ngotos to equal
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Dec 2004 05:54:20 +0000 (05:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Dec 2004 05:54:20 +0000 (05:54 +0000)
commit60e3ecc734352a7c702bb2d3e54dba567eeb5b60
tree62316aab665259e7a74e3c281627af5633b6c79d
parentb03595a5c2ba5b02bfb633d514709035b63d174d
(set_goto_map): Don't allow ngotos to equal
GOTO_NUMBER_MAXIMUM, since we occasionally compute
ngotos + 1 without checking for overflow.
(build_relations): Use END_NODE, not -1, to denote end of edges.
(set_goto_map, map_goto, initialize_F, add_loopback_edge,
build_relations): Use goto_number, not int, for goto numbers.
src/lalr.c