From: Paul Hilfinger Date: Thu, 9 Sep 2010 07:46:50 +0000 (-0700) Subject: Remove compiler warnings in GLR parsers. X-Git-Tag: v2.7.90~659 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/39f5757a95b687b334165c129ec3c95ce5fec8b5?ds=sidebyside Remove compiler warnings in GLR parsers. * data/glr.c (yySymbol): Define as int to avoid compiler warnings about possible change of value. --- diff --git a/ChangeLog b/ChangeLog index cef54a3d..5b61ec57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-09 Paul Hilfinger + + * data/glr.c (yySymbol): Define as int to avoid compiler warnings about + possible change of value. + 2010-09-08 Paul Hilfinger * data/glr.c (yy_reduce_print): Change yyrhsVals to yyvsp to remove diff --git a/data/glr.c b/data/glr.c index 944c3349..642b9931 100644 --- a/data/glr.c +++ b/data/glr.c @@ -673,7 +673,7 @@ typedef int yyStateNum; typedef int yyRuleNum; /** Grammar symbol */ -typedef short int yySymbol; +typedef int yySymbol; /** Item references, as in LALR(1) machine */ typedef short int yyItemNum;