mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
lalr1.cc: avoid static_cast
Reported by donmac703. Fixes https://github.com/akimd/bison/issues/20. * data/skeletons/lalr1.cc: here.
This commit is contained in:
@@ -921,7 +921,7 @@ b4_dollar_popdef])[]dnl
|
|||||||
--yyerrstatus_;
|
--yyerrstatus_;
|
||||||
|
|
||||||
// Shift the lookahead token.
|
// Shift the lookahead token.
|
||||||
yypush_ ("Shifting", static_cast<state_type> (yyn), YY_MOVE (yyla));]b4_lac_if([[
|
yypush_ ("Shifting", state_type (yyn), YY_MOVE (yyla));]b4_lac_if([[
|
||||||
yy_lac_discard_ ("shift");]])[
|
yy_lac_discard_ ("shift");]])[
|
||||||
goto yynewstate;
|
goto yynewstate;
|
||||||
|
|
||||||
@@ -1084,7 +1084,7 @@ b4_dollar_popdef])[]dnl
|
|||||||
|
|
||||||
// Shift the error token.]b4_lac_if([[
|
// Shift the error token.]b4_lac_if([[
|
||||||
yy_lac_discard_ ("error recovery");]])[
|
yy_lac_discard_ ("error recovery");]])[
|
||||||
error_token.state = static_cast<state_type> (yyn);
|
error_token.state = state_type (yyn);
|
||||||
yypush_ ("Shifting", YY_MOVE (error_token));
|
yypush_ ("Shifting", YY_MOVE (error_token));
|
||||||
}
|
}
|
||||||
goto yynewstate;
|
goto yynewstate;
|
||||||
|
|||||||
Reference in New Issue
Block a user