SR_ASSIGN does not take a struct type in ain v1

This commit is contained in:
kichikuou
2024-05-29 13:14:48 +09:00
parent 69cd1cb630
commit 69b1826d63
+2 -1
View File
@@ -1620,7 +1620,8 @@ static enum opcode execute_instruction(enum opcode opcode)
break;
}
case SR_ASSIGN: {
stack_pop(); // struct type
if (ain->version > 1)
stack_pop(); // struct type
int rval = stack_pop().i;
int lval = stack_pop().i;
heap_struct_assign(lval, rval);