mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
should not pop register when value from multiple assignment required
This commit is contained in:
+3
-1
@@ -1636,7 +1636,9 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
/* variable rhs */
|
||||
codegen(s, t, VAL);
|
||||
gen_vmassignment(s, tree->car, rhs, val);
|
||||
pop();
|
||||
if (!val) {
|
||||
pop();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user