]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix new template class flags
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 10 May 2020 15:56:30 +0000 (17:56 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 10 May 2020 15:56:30 +0000 (17:56 +0200)
src/lib/object_op.c

index 6bc6df26f308fc82c570850cad75bc5ee3fa0923..6a789a674b7108ca3194976f52038815f3ddfdf1 100644 (file)
@@ -372,6 +372,8 @@ ANN static Class_Def template_class(const Env env, const Class_Def def, const Ty
   const Class_Def c = cpy_class_def(env->gwion->mp, def);
   c->base.xid = name;
   SET_FLAG(c, template | ae_flag_ref);
+  UNSET_FLAG(c, scan0 | ae_flag_scan1 | ae_flag_scan2 |
+    ae_flag_check | ae_flag_emit | ae_flag_valid);
   return c;
 }