diff options
-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; |