]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix tuples
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 24 Nov 2019 00:02:06 +0000 (01:02 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 24 Nov 2019 00:02:06 +0000 (01:02 +0100)
src/lib/tuple.c

index 93a295f93b8029d299dd081910760d65116e96a2..994007dc94380f0a18bd2b79cd3e1da3cca505b6 100644 (file)
@@ -138,7 +138,10 @@ static OP_CHECK(opck_at_tuple) {
       if(e->exp_type == ae_exp_decl) {
         DECL_OO(const Type, t, = (Type)VPTR(&bin->lhs->type->e->tuple->types, i))
         e->d.exp_decl.td->xid->xid = insert_symbol(t->name);
+        const Exp next = e->next;
+        e->next = NULL;
         CHECK_BO(traverse_exp(env, e))
+        e->next = next;
         bin->rhs->meta = ae_meta_var;
       }
       ++i;