mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
* src/derives.c (print_derives): Be sure to use >= 0', not > 0',
when walking through ritem, even via rule->rhs. * src/reduce.c (dump_grammar, useful_production, reduce_output) (useful_production, useless_nonterminals): Likewise. (reduce_grammar_tables): Likewise, plus update nritems. * src/nullable.c (set_nullable): Likewise. * src/lalr.c (build_relations): Likewise. * tests/sets.at (Nullable): Adjust. Fortunately, now, the $axiom is no longer nullable.
This commit is contained in:
@@ -418,7 +418,7 @@ build_relations (void)
|
||||
state_t *state = state_table[from_state[i]];
|
||||
states[0] = state->number;
|
||||
|
||||
for (rp = ritem + rule_table[*rulep].rhs; *rp > 0; rp++)
|
||||
for (rp = &ritem[rule_table[*rulep].rhs]; *rp >= 0; rp++)
|
||||
{
|
||||
shifts *sp = state->shifts;
|
||||
int j;
|
||||
|
||||
Reference in New Issue
Block a user