From b61734a9e8ff7b63fd38facdf9eea070fe1526ca Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Wed, 13 Dec 2017 16:00:48 +0000 Subject: [PATCH] fixed an GC issue caused by unbalanced moo_pushtmp() and moo_poptmp() calls --- moo/kernel/Console.moo | 2 +- moo/lib/exec.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moo/kernel/Console.moo b/moo/kernel/Console.moo index 3a86303..0f9e7e8 100644 --- a/moo/kernel/Console.moo +++ b/moo/kernel/Console.moo @@ -47,7 +47,7 @@ extend SmallInteger } } -class Console(Object) from 'console' +class Console(Object) from 'con' { method(#primitive) _open. method(#primitive) _close. diff --git a/moo/lib/exec.c b/moo/lib/exec.c index a641e9e..a423763 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -1527,11 +1527,11 @@ TODO: overcome this problem - accept parameters.... s1 = moo_makesymbol (moo, objname->ptr, objname->len); if (!s1) goto oops; - moo_pushtmp (moo, (moo_oop_t*)&s1); + moo_pushtmp (moo, (moo_oop_t*)&s1); tmp_count++; s2 = moo_makesymbol (moo, mthname->ptr, mthname->len); if (!s2) goto oops; - moo_pushtmp (moo, (moo_oop_t*)&s2); + moo_pushtmp (moo, (moo_oop_t*)&s2); tmp_count++; #endif /* create a fake initial context. */