]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Put Vararg in shred->mem
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 12 May 2020 17:31:13 +0000 (19:31 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 12 May 2020 17:31:13 +0000 (19:31 +0200)
src/lib/vararg.c

index 2d2526861fddaff0d2f91f71b15a388409b4e7c8..590355ab05bd791c6056797a628da45129b9a4ba 100644 (file)
@@ -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) {