summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--unix/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c
index 228c4746a5..c3bd24cd98 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -30,7 +30,8 @@
#if MICROPY_ENABLE_GC
// Heap size of GC heap (if enabled)
-long heap_size = 128*1024;
+// Make it larger on a 64 bit machine, because pointers are larger.
+long heap_size = 128*1024 * (sizeof(machine_uint_t) / 4);
#endif
// Stack top at the start of program