mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fixed a bug with [] in RHS of multiple assignments; fix #3236
This commit is contained in:
@@ -1645,7 +1645,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
node *t = tree->cdr, *p;
|
||||
int rhs = cursp();
|
||||
|
||||
if ((intptr_t)t->car == NODE_ARRAY && nosplat(t->cdr)) {
|
||||
if ((intptr_t)t->car == NODE_ARRAY && t->cdr && nosplat(t->cdr)) {
|
||||
/* fixed rhs */
|
||||
t = t->cdr;
|
||||
while (t) {
|
||||
|
||||
Reference in New Issue
Block a user