From 2deb6006d177a0722f0ec978c146f9d3d205bfdf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 7 May 2020 00:50:49 +0200 Subject: [PATCH] :bug: Fix gack --- src/lib/gack.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/gack.c b/src/lib/gack.c index 94273441..d339529f 100644 --- a/src/lib/gack.c +++ b/src/lib/gack.c @@ -72,9 +72,7 @@ ANN void gack(const VM_Shred shred, const Instr instr) { ((f_gack)code->native_func)(t, (shred->reg - t->size), shred); POP_REG(shred, t->size); } else { - const m_uint offset = ((m_uint)shred->mem - SIZEOF_REG) != ((m_uint)shred + sizeof(struct VM_Shred_)) ? - instr->m_val2 : 0; - prepare_call(shred, offset); + prepare_call(shred, instr->m_val2); shred->code = code; POP_REG(shred, SZ_INT*2); } -- 2.43.0