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

Commit 25c8d5b1 authored by Chris Craik's avatar Chris Craik
Browse files

Fix pointer math in page start calculation

Change-Id: I1582e52f358fece647e35b13e93e56fd96b9a227
parent a05ee043
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) {