From da1a41cf95fc9aea198f621fc6fe2692870bb4f6 Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Sat, 1 Oct 2016 09:23:43 -0400 Subject: [PATCH] Fixup --- source/std/allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5