aboutsummaryrefslogtreecommitdiffstats
path: root/src/heap.c
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-01-23 08:23:46 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-01-23 08:23:46 -0500
commitbf230d6a745e61d72cd364bc6f0bea282671b634 (patch)
tree5aa04d7efa663a25c0ba7fe97d464de8feb05569 /src/heap.c
parenta93e506b78b7379e14c23ae80a5281485897faee (diff)
interpreter integration
Diffstat (limited to 'src/heap.c')
-rw-r--r--src/heap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/heap.c b/src/heap.c
index 1eba901..18cb8e6 100644
--- a/src/heap.c
+++ b/src/heap.c
@@ -30,9 +30,12 @@ void *hmalloc(uint32_t size)
void *hcalloc(uint32_t count, uint32_t size)
{
- uint32_t total = count * size;
+ /*uint32_t total = count * size;
void *alloc = hmalloc(total);
for (uint32_t i = 0; i < total; i++)
((uint8_t *)alloc)[i] = 0;
- return alloc;
+ return alloc;*/
+
+ // calloc broke
+ return hmalloc(count * size);
}