From 3897f109ed74e55b788e1fc33099aa651479daa4 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 20 Mar 2016 13:35:46 -0500 Subject: [PATCH] VS2015 warning fixes for Lemon --- tools/lemon/lemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c index e8a983943..9a6614f00 100644 --- a/tools/lemon/lemon.c +++ b/tools/lemon/lemon.c @@ -3784,7 +3784,7 @@ void print_stack_union( break; } hash++; - if( hash>=arraysize ) hash = 0; + if( hash>=(unsigned)arraysize ) hash = 0; } if( types[hash]==0 ){ sp->dtnum = hash + 1; @@ -3912,7 +3912,7 @@ void ReportTable( struct action *ap; struct rule *rp; struct acttab *pActtab; - int i, j, k, n, sz; + int i, j, n, sz; int szActionType; /* sizeof(YYACTIONTYPE) */ int szCodeType; /* sizeof(YYCODETYPE) */ const char *name; @@ -4429,7 +4429,7 @@ void CompressTables(struct lemon *lemp) struct state *stp; struct action *ap, *ap2; struct rule *rp, *rp2, *rbest; - int nbest, n, nshift; + int nbest, n; int i; int usesWildcard;