summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-04-05 19:31:35 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-04-05 19:31:35 +0000
commit4eb1d7669e8322e74f468039cf76fe02287dd510 (patch)
tree93b5902e46ab06ce138140ca202728bf31b5a7d0
parentace67655d555a9996802fdff93af898b96b0863a (diff)
downloadxine-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-xsrc/post/goom/surface.c3
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;