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:
Joshua Peraza 2019-01-10 14:02:54 -08:00 committed by Commit Bot
parent 732768cc9d
commit dc6dee855e

View File

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