From 4eb1d7669e8322e74f468039cf76fe02287dd510 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Mon, 5 Apr 2004 19:31:35 +0000 Subject: another int used to store a pointer, which breaks AMD64; thanks once again to Adrian Schroeter from SuSE for spotting this CVS patchset: 6332 CVS date: 2004/04/05 19:31:35 --- src/post/goom/surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/post/goom/surface.c b/src/post/goom/surface.c index 2a452564b..59bdf019e 100755 --- a/src/post/goom/surface.c +++ b/src/post/goom/surface.c @@ -1,10 +1,11 @@ #include "surface.h" #include +#include Surface * surface_new (int w, int h) { Surface * s = (Surface*)malloc(sizeof(Surface)); s->realstart = (int*)malloc(w*h*4 + 128); - s->buf = (int*)((int)s->realstart + 128 - (((int)s->realstart) % 128)); + s->buf = (int*)((uintptr_t)s->realstart + 128 - (((uintptr_t)s->realstart) % 128)); s->size = w*h; s->width = w; s->height = h; -- cgit v1.2.3