summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;