From: chaoskagami Date: Sat, 1 Oct 2016 13:23:43 +0000 (-0400) Subject: Fixup X-Git-Tag: v0.3.1~81 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=da1a41cf95fc9aea198f621fc6fe2692870bb4f6;p=corbenik%2Fcorbenik.git Fixup --- diff --git a/source/std/allocator.c b/source/std/allocator.c index 6ce278c..01f6bd7 100644 --- a/source/std/allocator.c +++ b/source/std/allocator.c @@ -20,7 +20,7 @@ void* sbrk(size_t incr) { heap_end += incr; - memset(prev_heap_end, 0, heap_end - prev_heap_end); // Clear heap. + memset(prev_heap_end, 0, (uint32_t)heap_end - (uint32_t)prev_heap_end); // Clear heap. return (void*) prev_heap_end; }