mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 04:43:03 +00:00
* src/closure.c (closure): Use nrules instead of playing tricks
with BITS_PER_WORD.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user