From: Jérémie Astor Date: Wed, 6 May 2020 22:50:49 +0000 (+0200) Subject: :bug: Fix gack X-Git-Tag: nightly~1644 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2deb6006d177a0722f0ec978c146f9d3d205bfdf;p=gwion.git :bug: Fix gack --- 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); }