]> git.saurik.com Git - bison.git/commit - src/state.c
Fix `%nonassoc and eof'.
authorAkim Demaille <akim@epita.fr>
Sun, 27 Jan 2002 13:57:17 +0000 (13:57 +0000)
committerAkim Demaille <akim@epita.fr>
Sun, 27 Jan 2002 13:57:17 +0000 (13:57 +0000)
commit82841af7d05fd59204a55dd3c3669b7154a4d2b5
treee5f8e1c19e8b890ffe4192f52dc49c4e3071763e
parent318b76e9134a2ba8e8aeca777acbf714807c60df
Fix `%nonassoc and eof'.
* src/state.c (errs_dup): Aaaah!  The failure was due to bytes
which were not properly copied!  Replace
memcpy (res->errs, src->errs, src->nerrs);
with
memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
!!!
* tests/regression.at (%nonassoc and eof): Adjust to newest
Autotest: `.' is not in the PATH.
ChangeLog
src/LR0.c
src/state.c
tests/regression.at