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
This commit is contained in:
Pascal Massimino 2010-11-01 15:07:12 -07:00
parent e14a0301f8
commit 5a936a0a21

View File

@ -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;