From 3419715d61f9dfcb748e5762b81dc461afaa7fef Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 18 Jul 2001 10:07:45 +0000 Subject: [PATCH] * src/bison.simple (yyparse): Suppress warning `comparaison between signed and unsigned'. --- ChangeLog | 5 +++++ src/bison.simple | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 `"); -- 2.47.2