X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b2872512f1fdfab1f8869abd3bad6373891c6cda..cb581495e689b4875c96eea8135f09d8a72eaacc:/src/closure.c?ds=sidebyside diff --git a/src/closure.c b/src/closure.c index 77ca72c8..12bb5817 100644 --- a/src/closure.c +++ b/src/closure.c @@ -220,7 +220,7 @@ closure (short *core, int n) nitemset = 0; c = 0; - for (ruleno = 0; ruleno < rulesetsize * BITS_PER_WORD; ++ruleno) + for (ruleno = 0; ruleno < nrules + 1; ++ruleno) if (BITISSET (ruleset, ruleno)) { int itemno = rule_table[ruleno].rhs;