summaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2017-09-02 19:55:39 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2017-09-02 19:55:39 +0200
commit7a831c215eabd589b2bdd0263b8c9ce069af6fe0 (patch)
tree4f8ff3635cc556501d525a5504c805dffb39685d /src/malloc.c
parent7ecdcc5ed89f7643f3845fea6ac668acbd1353d4 (diff)
decompile decompress.s
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c
index fd9dc616a..948303c6f 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -1,5 +1,7 @@
#include "global.h"
+EWRAM_DATA u8 gHeap[0x1C000] = {0};
+
static void *sHeapStart;
static u32 sHeapSize;
@@ -67,7 +69,7 @@ void *AllocInternal(void *heapStart, u32 size)
// size, so split the rest into a separate block.
foundBlockSize -= sizeof(struct MemBlock);
foundBlockSize -= size;
-
+
splitBlock = (struct MemBlock *)(pos->data + size);
pos->flag = TRUE;