fixed a bug with [] in RHS of multiple assignments; fix #3236

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-11-08 22:18:41 +09:00
parent 6c299aae67
commit 1142cf2037
+1 -1
View File
@@ -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) {