]> git.saurik.com Git - bison.git/blobdiff - src/lalr.c
* src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
[bison.git] / src / lalr.c
index db9abfa3c8c0226474aa92613b6f0817068eb283..660088cd62fff85e7c404a21c2c7eb5e7c9ace18 100644 (file)
@@ -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;