summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-08-18 08:48:08 -0400
committerGitHub <noreply@github.com>2021-08-18 08:48:08 -0400
commit49922b4856655a48389dbc45138930650e252dea (patch)
tree868e4c705a23808e7af2e34f2ed02318d0ffde2f /src/code
parent9eb438860cf1bcfe3ee31b1f50c43114606d4f79 (diff)
`system_malloc` OK (#261)
* move system_malloc to boot_O2 * Rename StartHeap into SystemArena * match * fake system_malloc data * fix return types * Rename Alloc to Malloc * Update tools/disasm/files.txt Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> * fix spec Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
Diffstat (limited to 'src/code')
-rw-r--r--src/code/game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/game.c b/src/code/game.c
index c049d023b..4fe094497 100644
--- a/src/code/game.c
+++ b/src/code/game.c
@@ -170,7 +170,7 @@ void Game_ResizeHeap(GameState* gamestate, u32 size) {
alloc = &gamestate->alloc;
THA_Dt(&gamestate->heap);
Gamealloc_Free(alloc, heapStart);
- StartHeap_AnalyzeArena(&systemMaxFree, &bytesFree, &bytesAllocated);
+ SystemArena_AnalyzeArena(&systemMaxFree, &bytesFree, &bytesAllocated);
size = ((systemMaxFree - (sizeof(ArenaNode))) < size) ? (0) : (size);
if (!size) {
size = systemMaxFree - (sizeof(ArenaNode));