* src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1.

* doc/bison.texinfo (Decl Summary): s/$illegal/$undefined./.
* tests/regression.at (Web2c Actions): Adjust.
This commit is contained in:
Akim Demaille
2002-07-26 06:24:11 +00:00
parent 4b3d3a8e46
commit 3650b4b8dd
4 changed files with 15 additions and 9 deletions

View File

@@ -344,11 +344,11 @@ prepare_tokens (void)
/* Output YYTOKNUM. */
{
int i;
int *values = XCALLOC (int, ntokens + 1);
for (i = 0; i < ntokens + 1; ++i)
int *values = XCALLOC (int, ntokens);
for (i = 0; i < ntokens; ++i)
values[i] = symbols[i]->user_token_number;
muscle_insert_int_table ("toknum", values,
0, 1, ntokens + 1);
values[0], 1, ntokens);
free (values);
}
}