From 546d893a07dafeb436708a45f33bf409f9328bfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 12 May 2020 19:31:13 +0200 Subject: [PATCH] :bug: Put Vararg in shred->mem --- src/lib/vararg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/vararg.c b/src/lib/vararg.c index 2d252686..590355ab 100644 --- a/src/lib/vararg.c +++ b/src/lib/vararg.c @@ -76,7 +76,7 @@ INSTR(VarargIni) { } arg->s = vector_size(kinds); *(struct Vararg_**)o->data = arg; - *(M_Object*)REG(-SZ_INT) = o; + *(M_Object*)MEM(shred->code->stack_depth) = *(M_Object*)REG(-SZ_INT) = o; } static INSTR(VarargEnd) { -- 2.43.0