summaryrefslogtreecommitdiff
path: root/lang/f2c/patches/patch-an
blob: 6002e2fd93f23df3a1480e44ccdc45d521e63d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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: