diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-23 03:45:18 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-23 03:45:18 +0000 |
commit | 0ec8fba18ced708100cf2c15cd273a3709040fa5 (patch) | |
tree | f4fde94d807b949aa0c67c749840dd2f49066b0c /tools/lemon | |
parent | 1c5c3a0ef807f99717f641960753f3fb3940a599 (diff) |
fix warnings of (generated) grammar.c
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21146 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools/lemon')
-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 ){ |