]> git.saurik.com Git - bison.git/blobdiff - src/conflicts.c
Bison is dead wrong in its RR conflict reports.
[bison.git] / src / conflicts.c
index 746fcb50cd6f3fc70e6075e5ef88aed1dc124aa4..bd29bf9717fb730649923328880e0f9c77853be0 100644 (file)
@@ -265,7 +265,7 @@ count_rr_conflicts (state_t *state)
       int count = 0;
       int j;
       for (j = 0; j < state->nlookaheads; ++j)
-       if (BITISSET (LA (state->lookaheadsp), state->lookaheadsp + j))
+       if (BITISSET (LA (state->lookaheadsp + j), i))
          count++;
 
       if (count >= 2)