mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
android: use size_t to align
A uint8_t won't be bit-extended, zero-ing all the upper bits of value. Change-Id: Iae41eeb4a014de5ed47ad599081959250a7bbe9c Reviewed-on: https://chromium-review.googlesource.com/c/1405691 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
parent
732768cc9d
commit
dc6dee855e
@ -35,7 +35,7 @@ extern "C" void* __mmap2(void* addr,
|
||||
namespace {
|
||||
|
||||
template <typename T>
|
||||
T Align(T value, uint8_t alignment) {
|
||||
T Align(T value, size_t alignment) {
|
||||
return (value + alignment - 1) & ~(alignment - 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user