mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 13:18:22 +01:00
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:
parent
e14a0301f8
commit
5a936a0a21
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user