freebsd-ports/games/xkobo/files/patch-af
Will Andrews a2ae5368c1 Fix compilation when using gcc 4.1 due to attempting to cast a pointer to an
int, which may lose precision on platforms where sizeof(void*) > sizeof(int).
Properly support overriding CC/CXX, which is a prerequisite for fixing this.

Noticed by:	pointyhat/kris
2007-03-20 20:11:49 +00:00

20 lines
446 B
Text

--- file.C.old Tue Jan 18 19:16:42 2000
+++ file.C Tue Jan 18 19:17:07 2000
@@ -42,7 +42,7 @@
ret = -2;
break;
}
- t += i;
+ t = (void *) ((long) t + i);
len -= i;
} while (len > 0);
for (;;){
@@ -68,7 +68,7 @@
ret = -2;
break;
}
- t += i;
+ t = (void *) ((long) t + i);
len -= i;
} while (len > 0);
for (;;){