From 0937fcb2bf2d99d5578b6147111d6e85fe07108a Mon Sep 17 00:00:00 2001 From: jnthn Date: Sun, 8 Feb 2015 22:16:55 +0100 Subject: [PATCH] Fix order of args passed to lexical ref function. --- src/core/interp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/interp.c b/src/core/interp.c index f8114902a4..75e6cb1685 100644 --- a/src/core/interp.c +++ b/src/core/interp.c @@ -4398,17 +4398,17 @@ void MVM_interp_run(MVMThreadContext *tc, void (*initial_invoke)(MVMThreadContex MVM_exception_throw_adhoc(tc, "Native register reference taking ops NYI"); OP(getlexref_i): GET_REG(cur_op, 0).o = MVM_nativeref_lex_i(tc, - GET_UI16(cur_op, 2), GET_UI16(cur_op, 4)); + GET_UI16(cur_op, 4), GET_UI16(cur_op, 2)); cur_op += 6; goto NEXT; OP(getlexref_n): GET_REG(cur_op, 0).o = MVM_nativeref_lex_n(tc, - GET_UI16(cur_op, 2), GET_UI16(cur_op, 4)); + GET_UI16(cur_op, 4), GET_UI16(cur_op, 2)); cur_op += 6; goto NEXT; OP(getlexref_s): GET_REG(cur_op, 0).o = MVM_nativeref_lex_s(tc, - GET_UI16(cur_op, 2), GET_UI16(cur_op, 4)); + GET_UI16(cur_op, 4), GET_UI16(cur_op, 2)); cur_op += 6; goto NEXT; OP(getlexref_ni):