From 0d08417efe029bbaecc83393dfa2c003c9f40214 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 29 Sep 2014 13:04:49 +0000 Subject: [PATCH] bugfix in the RET instruction --- src/runtime/c/pgf/jit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/c/pgf/jit.c b/src/runtime/c/pgf/jit.c index 7395162e0..0470b7f9f 100644 --- a/src/runtime/c/pgf/jit.c +++ b/src/runtime/c/pgf/jit.c @@ -1089,7 +1089,7 @@ pgf_jit_function(PgfReader* rdr, PgfAbstr* abstr, } if (b-(a+1) > 0) - jit_subi_p(JIT_SP, JIT_SP, (b-(a+1))*sizeof(PgfClosure*)); + jit_addi_p(JIT_SP, JIT_SP, (b-(a+1))*sizeof(PgfClosure*)); jit_bare_ret(a*sizeof(PgfClosure*)); break; }