From 29b19e10b33f200b93eb880fb595a2cd6f3c530d Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Sat, 8 Dec 2018 15:36:20 +0000 Subject: [PATCH] fixed a wrong function name used --- moo/lib/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moo/lib/gc.c b/moo/lib/gc.c index 60790c0..712d42a 100644 --- a/moo/lib/gc.c +++ b/moo/lib/gc.c @@ -583,7 +583,7 @@ int moo_ignite (moo_t* moo, moo_oow_t heapsz) moo->heap = moo_makeheap(moo, heapsz); if (!moo->heap) return -1; - moo->_nil = moo_allocpermbytes(moo, MOO_SIZEOF(moo_obj_t)); + moo->_nil = moo_allocbytes(moo, MOO_SIZEOF(moo_obj_t)); if (!moo->_nil) return -1; moo->_nil->_flags = MOO_OBJ_MAKE_FLAGS (MOO_OBJ_TYPE_OOP, MOO_SIZEOF(moo_oop_t), 0, 1, 0, 0, 0);