* src/closure.c (closure): Use nrules instead of playing tricks

with BITS_PER_WORD.
This commit is contained in:
Akim Demaille
2001-12-13 11:02:04 +00:00
parent 2e729273d6
commit cb581495e6
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2001-12-13 Akim Demaille <akim@epita.fr>
* src/closure.c (closure): Use nrules instead of playing tricks
with BITS_PER_WORD.
2001-12-13 Akim Demaille <akim@epita.fr>
* src/print.c (print_actions): Output the handling of `$' as the

View File

@@ -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;