Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 524a5af0 authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "Fix pointer math in page start calculation"

parents 626ba0c2 25c8d5b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ LinearAllocator::~LinearAllocator(void) {
}

void* LinearAllocator::start(Page* p) {
    return ALIGN_PTR(((size_t*)p) + sizeof(Page));
    return ALIGN_PTR((size_t)p + sizeof(Page));
}

void* LinearAllocator::end(Page* p) {