* src/closure.c, src/print.c, src/reader.c, src/reduce.c:

Normalize loops to using `< nrules + 1', not `<= nrules'.
This commit is contained in:
Akim Demaille
2002-04-07 15:30:20 +00:00
parent fa770c8662
commit 18bcecb07d
5 changed files with 23 additions and 17 deletions

View File

@@ -1538,7 +1538,7 @@ token_translations_init (void)
/* Initialize all entries for literal tokens to 2, the internal
token number for $undefined., which represents all invalid
inputs. */
for (i = 0; i <= max_user_token_number; i++)
for (i = 0; i < max_user_token_number + 1; i++)
token_translations[i] = 2;
for (bp = firstsymbol; bp; bp = bp->next)