aboutsummaryrefslogtreecommitdiff
path: root/ports/qemu-arm/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/qemu-arm/main.c')
-rw-r--r--ports/qemu-arm/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/qemu-arm/main.c b/ports/qemu-arm/main.c
index d23ef576f..4cdd14828 100644
--- a/ports/qemu-arm/main.c
+++ b/ports/qemu-arm/main.c
@@ -30,7 +30,7 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) {
int main(int argc, char **argv) {
mp_stack_ctrl_init();
mp_stack_set_limit(10240);
- void *heap = malloc(16 * 1024);
+ uint32_t heap[16*1024 / 4];
gc_init(heap, (char*)heap + 16 * 1024);
mp_init();
do_str("print('hello world!')", MP_PARSE_SINGLE_INPUT);