Skip to content
Permalink
Browse files
fixed a bug with [] in RHS of multiple assignments; fix #3236
  • Loading branch information
matz committed Nov 8, 2016
1 parent 6c299aa commit 1142cf20370362ab2b974b235e7606246245ce23
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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) {

0 comments on commit 1142cf2

Please sign in to comment.