X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/573c1d9ff8aca759e7d01405c809b0318e2edfb2..dc2825ae898c526ea3619450112b2ea44f437151:/src/bison.simple diff --git a/src/bison.simple b/src/bison.simple index 2a0f0b19..e2b5d6fb 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -672,7 +672,7 @@ yyerrlab: count = 0; /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof (yytname) / sizeof (char *)); x++) + x < (int) (sizeof (yytname) / sizeof (char *)); x++) if (yycheck[x + yyn] == x) size += strlen (yytname[x]) + 15, count++; size += strlen ("parse error, unexpected `") + 1; @@ -688,7 +688,7 @@ yyerrlab: { count = 0; for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof (yytname) / sizeof (char *)); x++) + x < (int) (sizeof (yytname) / sizeof (char *)); x++) if (yycheck[x + yyn] == x) { strcat (msg, count == 0 ? ", expecting `" : " or `");