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:
Akim Demaille
2019-10-24 23:02:26 +02:00
parent 402332c4b6
commit 0cbefb71e8

View File

@@ -846,7 +846,7 @@ b4_dollar_popdef])[]dnl
| yynewstate -- push a new symbol on the stack. |
`-----------------------------------------------*/
yynewstate:
YYCDEBUG << "Entering state " << yystack_[0].state << '\n';
YYCDEBUG << "Entering state " << int (yystack_[0].state) << '\n';
// Accept?
if (yystack_[0].state == yyfinal_)
@@ -1427,7 +1427,7 @@ b4_error_verbose_if([state_type yystate, const symbol_type& yyla],
i = yystack_.begin (),
i_end = yystack_.end ();
i != i_end; ++i)
*yycdebug_ << ' ' << i->state;
*yycdebug_ << ' ' << int (i->state);
*yycdebug_ << '\n';
}