diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc index b9a3c98d..4a7b71dd 100644 --- a/data/skeletons/lalr1.cc +++ b/data/skeletons/lalr1.cc @@ -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'; }