From 8889a6580d9512689e0acfa081611be30c0b1d97 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Sun, 13 Feb 2022 09:47:17 +0000 Subject: [PATCH] changed to use MOO_STACK_GETRCV() --- moo/lib/exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moo/lib/exec.c b/moo/lib/exec.c index 6063506..2ce2665 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -1994,11 +1994,11 @@ void moo_clearmethodcache (moo_t* moo) static int start_initial_process_and_context (moo_t* moo, const moo_oocs_t* objname, const moo_oocs_t* mthname) { - /* the initial context is a fake context. if objname is 'Stix' and - * mthname is 'main', this function emulates message sending 'Stix main'. + /* the initial context is a fake context. if objname is 'Moo' and + * mthname is 'main', this function emulates message sending 'Moo main'. * it should emulate the following logical byte-code sequences: * - * push Stix + * push Moo * send #main */ moo_oop_context_t ctx; @@ -4903,7 +4903,7 @@ static int send_message (moo_t* moo, moo_oop_char_t selector, moo_ooi_t nargs, i MOO_ASSERT (moo, MOO_OBJ_GET_FLAGS_TYPE(selector) == MOO_OBJ_TYPE_CHAR); MOO_ASSERT (moo, MOO_CLASSOF(moo, selector) == moo->_symbol); - receiver = MOO_STACK_GET(moo, moo->sp - nargs); + receiver = MOO_STACK_GETRCV(moo, nargs); #if defined(MOO_PROFILE_VM) moo->stat.message_sends++;