mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
wrong register number adjustment in multiple assignment; fix #2654
This commit is contained in:
+1
-2
@@ -1003,7 +1003,6 @@ gen_vmassignment(codegen_scope *s, node *tree, int rhs, int val)
|
||||
genop(s, MKOP_AB(OP_MOVE, cursp(), rhs));
|
||||
push();
|
||||
}
|
||||
pop();
|
||||
genop(s, MKOP_ABC(OP_APOST, cursp(), n, post));
|
||||
n = 1;
|
||||
if (t->car) { /* rest */
|
||||
@@ -1018,7 +1017,7 @@ gen_vmassignment(codegen_scope *s, node *tree, int rhs, int val)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (val) {
|
||||
if (!val) {
|
||||
pop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user