diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-04-05 19:31:35 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-04-05 19:31:35 +0000 |
commit | 4eb1d7669e8322e74f468039cf76fe02287dd510 (patch) | |
tree | 93b5902e46ab06ce138140ca202728bf31b5a7d0 | |
parent | ace67655d555a9996802fdff93af898b96b0863a (diff) | |
download | xine-lib-4eb1d7669e8322e74f468039cf76fe02287dd510.tar.gz xine-lib-4eb1d7669e8322e74f468039cf76fe02287dd510.tar.bz2 |
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
-rwxr-xr-x | src/post/goom/surface.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdlib.h> +#include <inttypes.h> 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; |