From: Akim Demaille Date: Wed, 18 Jul 2001 10:07:45 +0000 (+0000) Subject: * src/bison.simple (yyparse): Suppress warning `comparaison X-Git-Tag: BISON-1_28b~22 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/3419715d61f9dfcb748e5762b81dc461afaa7fef * src/bison.simple (yyparse): Suppress warning `comparaison between signed and unsigned'. --- diff --git a/ChangeLog b/ChangeLog index 4cbc516a..ccb6f1ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-07-08 Pascal Bart + + * src/bison.simple (yyparse): Suppress warning `comparaison + between signed and unsigned'. + 2001-07-05 Pascal Bart * src/getargs.h (raw_flag): Remove. 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 `");