]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix [ , , ] @=> xxx array[]
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sat, 29 Jun 2019 18:13:05 +0000 (20:13 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sat, 29 Jun 2019 18:13:05 +0000 (20:13 +0200)
src/lib/array.c

index 455489357be6da83ed638e1ab170f0cd4169695a..b40d3d87b718bd1e89f997df525e2eca521f66f7 100644 (file)
@@ -156,7 +156,7 @@ static OP_CHECK(opck_array_at) {
   if(bin->lhs->type->array_depth != bin->rhs->type->array_depth)
     ERR_N(exp_self(bin)->pos, _("array depths do not match."))
   if(bin->rhs->exp_type == ae_exp_decl) {
-    if(bin->rhs->d.exp_decl.list->self->array)
+    if(bin->rhs->d.exp_decl.list->self->array->exp)
       ERR_N(exp_self(bin)->pos, _("do not provide array for 'xxx @=> declaration'."))
   }
   bin->rhs->emit_var = 1;