Use uintptr_t for masking ptrs.

TBR=mtklein@google.com

Change-Id: I9f63087345f65547689dd77449cf6640aa886354
Reviewed-on: https://skia-review.googlesource.com/8890
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2017-02-22 16:01:27 -05:00 committed by Skia Commit-Bot
parent aab68c56ef
commit ca70b59d8c

View File

@ -129,8 +129,7 @@ char* SkArenaAlloc::allocObject(uint32_t size, uint32_t alignment) {
} }
char* SkArenaAlloc::allocObjectWithFooter(uint32_t sizeIncludingFooter, uint32_t alignment) { char* SkArenaAlloc::allocObjectWithFooter(uint32_t sizeIncludingFooter, uint32_t alignment) {
// Must be uint64 to mask 64-bit pointers properly. uintptr_t mask = alignment - 1;
uint64_t mask = alignment - 1;
restart: restart:
uint32_t skipOverhead = 0; uint32_t skipOverhead = 0;