summaryrefslogtreecommitdiff
path: root/lang/f2c/patches/patch-al
blob: dbb4ed139ce0e5e2135aa0d2f8632d9690559aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-al,v 1.1 2010/07/31 20:31:33 dholland Exp $

PR 43291: integer type misuse caught by gcc 4.4

--- src/data.c.orig	2001-03-01 21:16:12.000000000 +0000
+++ src/data.c
@@ -360,7 +360,7 @@
 		k = elen - valp->vleng->constblock.Const.ci;
 		if(k > 0) {
 			dataline(varname, offset, TYBLANK);
-			fprintf(dfile, "\t%d\n", k);
+			fprintf(dfile, "\t%d\n", (int) k);
 			}
 		break;