mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 16:23:04 +00:00
* src/closure.c (closure): Use nrules instead of playing tricks
with BITS_PER_WORD.
This commit is contained in:
@@ -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>
|
2001-12-13 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/print.c (print_actions): Output the handling of `$' as the
|
* src/print.c (print_actions): Output the handling of `$' as the
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ closure (short *core, int n)
|
|||||||
|
|
||||||
nitemset = 0;
|
nitemset = 0;
|
||||||
c = 0;
|
c = 0;
|
||||||
for (ruleno = 0; ruleno < rulesetsize * BITS_PER_WORD; ++ruleno)
|
for (ruleno = 0; ruleno < nrules + 1; ++ruleno)
|
||||||
if (BITISSET (ruleset, ruleno))
|
if (BITISSET (ruleset, ruleno))
|
||||||
{
|
{
|
||||||
int itemno = rule_table[ruleno].rhs;
|
int itemno = rule_table[ruleno].rhs;
|
||||||
|
|||||||
Reference in New Issue
Block a user