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

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

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
2001-12-13 Akim Demaille <[email protected]>
* src/closure.c (closure): Use nrules instead of playing tricks
with BITS_PER_WORD.
2001-12-13 Akim Demaille <[email protected]>
* src/print.c (print_actions): Output the handling of `$' as the
+1 -1
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;