diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2007-03-23 03:45:18 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2007-03-23 03:45:18 +0000 |
commit | 3dfa722849d5048e36f51cd1f439a3acb3374b9f (patch) | |
tree | f4fde94d807b949aa0c67c749840dd2f49066b0c /tools | |
parent | 9977de732f1152d4fc338d8ce829d38ac65a7d44 (diff) |
fix warnings of (generated) grammar.c
svn path=/trunk/; revision=21146
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lemon/lempar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lemon/lempar.c b/tools/lemon/lempar.c index 174ba6fe66..aaa7a8d2a5 100644 --- a/tools/lemon/lempar.c +++ b/tools/lemon/lempar.c @@ -523,7 +523,7 @@ static void yy_reduce( yygoto = yyRuleInfo[yyruleno].lhs; yysize = yyRuleInfo[yyruleno].nrhs; yypParser->yyidx -= yysize; - yyact = yy_find_reduce_action(yymsp[-yysize].stateno,yygoto); + yyact = yy_find_reduce_action(yymsp[-yysize].stateno,(YYCODETYPE)yygoto); if( yyact < YYNSTATE ){ #ifdef NDEBUG /* If we are not debugging and the reduce action popped at least @@ -649,7 +649,7 @@ void Parse( #endif do{ - yyact = yy_find_shift_action(yypParser,yymajor); + yyact = yy_find_shift_action(yypParser,(YYCODETYPE)yymajor); if( yyact<YYNSTATE ){ yy_shift(yypParser,yyact,yymajor,&yyminorunion); yypParser->yyerrcnt--; @@ -698,7 +698,7 @@ void Parse( yyTracePrompt,yyTokenName[yymajor]); } #endif - yy_destructor(yymajor,&yyminorunion); + yy_destructor((YYCODETYPE)yymajor,&yyminorunion); yymajor = YYNOCODE; }else{ while( @@ -709,7 +709,7 @@ void Parse( yy_pop_parser_stack(yypParser); } if( yypParser->yyidx < 0 || yymajor==0 ){ - yy_destructor(yymajor,&yyminorunion); + yy_destructor((YYCODETYPE)yymajor,&yyminorunion); yy_parse_failed(yypParser); yymajor = YYNOCODE; }else if( yymx!=YYERRORSYMBOL ){ |