summaryrefslogtreecommitdiff
path: root/lang/f2c/patches/patch-an
diff options
context:
space:
mode:
Diffstat (limited to 'lang/f2c/patches/patch-an')
-rw-r--r--lang/f2c/patches/patch-an15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/f2c/patches/patch-an b/lang/f2c/patches/patch-an
new file mode 100644
index 00000000000..6002e2fd93f
--- /dev/null
+++ b/lang/f2c/patches/patch-an
@@ -0,0 +1,15 @@
+$NetBSD: patch-an,v 1.1 2010/07/31 20:31:33 dholland Exp $
+
+PR 43291: integer type misuse caught by gcc 4.4
+
+--- src/p1output.c.orig 2001-03-01 21:16:13.000000000 +0000
++++ src/p1output.c
+@@ -206,7 +206,7 @@ p1_const(register Constp cp)
+ if (vleng && !ISICON (vleng))
+ err("p1_const: bad vleng\n");
+ else
+- fprintf(pass1_file, "%d: %d %lx\n", P1_CONST, type,
++ fprintf(pass1_file, "%d: %d %p\n", P1_CONST, type,
+ cpexpr((expptr)cp));
+ break;
+ default: