summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/libwebp/frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/libwebp/frame.c b/third_party/libwebp/frame.c
index 2386db2..1e1aadc 100644
--- a/third_party/libwebp/frame.c
+++ b/third_party/libwebp/frame.c
@@ -9,6 +9,7 @@
//
// Author: Skal (pascal.massimino@gmail.com)
+#include <stddef.h>
#include <stdlib.h>
#include "vp8i.h"
@@ -64,7 +65,7 @@ int VP8InitFrame(VP8Decoder* const dec, VP8Io* io) {
dec->mb_info_ = ((VP8MB*)mem) + 1;
mem += info_size;
- mem = (uint8_t*)((uint64_t)(mem + ALIGN_MASK) & ~ALIGN_MASK);
+ mem = (uint8_t*)((uintptr_t)(mem + ALIGN_MASK) & ~ALIGN_MASK);
assert((yuv_size & ALIGN_MASK) == 0);
dec->yuv_b_ = (uint8_t*)mem;
mem += yuv_size;