mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 22:03:02 +00:00
* 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user