From 5a936a0a216264c5d7acb46645cfd4f96cd062ce Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Mon, 1 Nov 2010 15:07:12 -0700 Subject: [PATCH] use uintptr_t for casting pointers to ints this is required on 32bit platforms (and is the recommended way to do so, actually) Change-Id: I8785be523e91a6ed2806612984b3830eab4da757 --- src/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame.c b/src/frame.c index 6e763275..b7bb16a4 100644 --- a/src/frame.c +++ b/src/frame.c @@ -64,7 +64,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;