]> Nishi Git Mirror - gwion.git/commitdiff
:art: Remove useless loop
authorJérémie Astor <fennecdjay@gmail.com>
Sat, 12 Dec 2020 12:51:37 +0000 (13:51 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Sat, 12 Dec 2020 12:51:37 +0000 (13:51 +0100)
src/parse/check.c

index 9fa666a4a7f94714745b94c2b6b357a3368cdc41..2d537ab29e2c7cd38ef918ba422fbf0fc312d0b1 100644 (file)
@@ -1015,8 +1015,7 @@ ANN m_bool check_union_decl(const Env env, const Union_Def udef) {
     CHECK_OB(check_exp(env, l->self))
     Var_Decl_List list = l->self->d.exp_decl.list;
     list->self->value->from->offset = ++idx;
-    do set_vflag(list->self->value, vflag_union);
-    while((list = list->next)); // disallow multiple values here.
+    set_vflag(list->self->value, vflag_union);
     if(l->self->info->type->size > sz)
       sz = l->self->info->type->size;
   } while((l = l->next));