mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: be strict about types
* tests/actions.at, tests/c++.at, tests/cxx-type.at, * tests/glr-regression.at, tests/local.at, tests/torture.at, * tests/types.at: Pay stricter attention to types to avoid warnings.
This commit is contained in:
@@ -1181,12 +1181,12 @@ yylex (yy::parser::semantic_type *lvalp)
|
||||
// 'R': call YYERROR in the action
|
||||
// 's': reduction throws.
|
||||
// 'T': call YYABORT in the action
|
||||
switch (int res = *input++)
|
||||
switch (char res = *input++)
|
||||
{
|
||||
case 'l':
|
||||
throw std::runtime_error ("yylex");
|
||||
default:
|
||||
lvalp->]AT_VARIANT_IF([build (Object (res))],
|
||||
lvalp->]AT_VARIANT_IF([build<Object> (res)],
|
||||
[obj = new Object (res)])[;
|
||||
// Fall through.
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user