summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2000-02-03 11:48:35 +0000
committerjdolecek <jdolecek@pkgsrc.org>2000-02-03 11:48:35 +0000
commit813c20ccaa82f904fda428f747bfe46108f360c9 (patch)
tree23e31facacbf498db39685e9bd2eada0606a325d /devel
parentcafd922874763c852d9efe12abb1e677dc9db0fc (diff)
downloadpkgsrc-813c20ccaa82f904fda428f747bfe46108f360c9.tar.gz
add a cast to the bison.simple template to avoid signed/unsigned
comparison in generated code (shows up with gcc -Wsign-compare for example)
Diffstat (limited to 'devel')
-rw-r--r--devel/bison/patches/patch-ae22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/bison/patches/patch-ae b/devel/bison/patches/patch-ae
new file mode 100644
index 00000000000..9e95a7f4b14
--- /dev/null
+++ b/devel/bison/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.1 2000/02/03 11:48:36 jdolecek Exp $
+
+--- src/bison.s1.orig Mon Mar 22 17:30:00 1999
++++ src/bison.s1 Thu Feb 3 12:38:24 2000
+@@ -611,7 +611,7 @@ yyerrlab: /* here on detecting error *
+ 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++;
+ msg = (char *) malloc(size + 15);
+@@ -623,7 +623,7 @@ yyerrlab: /* here on detecting error *
+ {
+ 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 `");