X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a900a6248cb96beb60a5ef480e2dc0836c2bda66..ec3bc39:/src/reader.c diff --git a/src/reader.c b/src/reader.c index f0753460..93df69a6 100644 --- a/src/reader.c +++ b/src/reader.c @@ -1286,12 +1286,12 @@ parse_action (symbol_list *rule, int rule_length) switch (c) { case '\n': - obstack_1grow (&action_obstack, c); + copy_character (&action_obstack, c); ++lineno; break; case '{': - obstack_1grow (&action_obstack, c); + copy_character (&action_obstack, c); ++count; break; @@ -1316,12 +1316,12 @@ parse_action (symbol_list *rule, int rule_length) fatal (_("unmatched %s"), "`{'"); default: - obstack_1grow (&action_obstack, c); + copy_character (&action_obstack, c); } /* Above loop exits when C is '}'. */ if (--count) - obstack_1grow (&action_obstack, c); + copy_character (&action_obstack, c); } obstack_1grow (&action_obstack, '\0'); @@ -1736,7 +1736,7 @@ packsymbols (void) static void packgram (void) { - int itemno; + unsigned int itemno; int ruleno; symbol_list *p;