VS2015 warning fixes for Lemon

This commit is contained in:
Randy Heit 2016-03-20 13:35:46 -05:00
parent 4641549e0e
commit 3897f109ed

View file

@ -3784,7 +3784,7 @@ void print_stack_union(
break; break;
} }
hash++; hash++;
if( hash>=arraysize ) hash = 0; if( hash>=(unsigned)arraysize ) hash = 0;
} }
if( types[hash]==0 ){ if( types[hash]==0 ){
sp->dtnum = hash + 1; sp->dtnum = hash + 1;
@ -3912,7 +3912,7 @@ void ReportTable(
struct action *ap; struct action *ap;
struct rule *rp; struct rule *rp;
struct acttab *pActtab; struct acttab *pActtab;
int i, j, k, n, sz; int i, j, n, sz;
int szActionType; /* sizeof(YYACTIONTYPE) */ int szActionType; /* sizeof(YYACTIONTYPE) */
int szCodeType; /* sizeof(YYCODETYPE) */ int szCodeType; /* sizeof(YYCODETYPE) */
const char *name; const char *name;
@ -4429,7 +4429,7 @@ void CompressTables(struct lemon *lemp)
struct state *stp; struct state *stp;
struct action *ap, *ap2; struct action *ap, *ap2;
struct rule *rp, *rp2, *rbest; struct rule *rp, *rp2, *rbest;
int nbest, n, nshift; int nbest, n;
int i; int i;
int usesWildcard; int usesWildcard;