mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
lalr1.cc: fix previous commit: printing of state numbers
* data/skeletons/lalr1.cc: Printing a char prints... a char. Print ints instead.
This commit is contained in:
@@ -846,7 +846,7 @@ b4_dollar_popdef])[]dnl
|
|||||||
| yynewstate -- push a new symbol on the stack. |
|
| yynewstate -- push a new symbol on the stack. |
|
||||||
`-----------------------------------------------*/
|
`-----------------------------------------------*/
|
||||||
yynewstate:
|
yynewstate:
|
||||||
YYCDEBUG << "Entering state " << yystack_[0].state << '\n';
|
YYCDEBUG << "Entering state " << int (yystack_[0].state) << '\n';
|
||||||
|
|
||||||
// Accept?
|
// Accept?
|
||||||
if (yystack_[0].state == yyfinal_)
|
if (yystack_[0].state == yyfinal_)
|
||||||
@@ -1427,7 +1427,7 @@ b4_error_verbose_if([state_type yystate, const symbol_type& yyla],
|
|||||||
i = yystack_.begin (),
|
i = yystack_.begin (),
|
||||||
i_end = yystack_.end ();
|
i_end = yystack_.end ();
|
||||||
i != i_end; ++i)
|
i != i_end; ++i)
|
||||||
*yycdebug_ << ' ' << i->state;
|
*yycdebug_ << ' ' << int (i->state);
|
||||||
*yycdebug_ << '\n';
|
*yycdebug_ << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user