freebsd-ports/japanese/iv/files/patch-cb
Shigeyuki Fukushima d0094e951a Fix build error under 4-current and new egcs/C++ compiler.
PR:		ports/16024
Submitted by:	MIHIRA Yoshiro <sanpei@sanpei.org>
2000-01-11 15:52:35 +00:00

12 lines
429 B
Text

--- src/bin/ibuild/ibcatalog.c.org Wed Sep 9 07:36:27 1992
+++ src/bin/ibuild/ibcatalog.c Wed Jan 5 22:12:40 2000
@@ -614,7 +614,8 @@
graylevel = CalcGrayLevel(data[0]);
}
} else if (graylevel == -1) {
- for (int i = 0; in >> _buf && i < patternHeight; i++) {
+ int i;
+ for (i = 0; in >> _buf && i < patternHeight; i++) {
if (_buf[0] == '>' || sscanf(_buf, "%x", &data[i]) != 1) {
break;
}