From 7cab82a1c90f893d33aaebcbea2b47bb8cd232e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 1 Dec 2009 16:20:41 +0000 Subject: [PATCH] * Cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34415 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/loader/heap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/boot/loader/heap.cpp b/src/system/boot/loader/heap.cpp index c6e2e98eed..970ce7f272 100644 --- a/src/system/boot/loader/heap.cpp +++ b/src/system/boot/loader/heap.cpp @@ -224,7 +224,7 @@ heap_init(stage2_args* args) sHeapBase = base; sMaxHeapSize = (uint8*)top - (uint8*)base; - sAvailable = sMaxHeapSize - sizeof(uint32); + sAvailable = sMaxHeapSize - FreeChunk::NextOffset(); // declare the whole heap as one chunk, and add it // to the free list