]> Nishi Git Mirror - gwion.git/commitdiff
:bug: check for parent->e->def
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 7 May 2020 17:28:27 +0000 (19:28 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 7 May 2020 17:28:27 +0000 (19:28 +0200)
src/parse/scan2.c

index 69b3bfeb01ac6f63d5533d1277c3dce1ed8f274a..c52c5fd9a8bc8450482d9226dbefe9d220a78fb3 100644 (file)
@@ -560,7 +560,7 @@ HANDLE_SECTION_FUNC(scan2, m_bool, Env)
 ANN static m_bool scan2_parent(const Env env, const Class_Def cdef) {
   const Type parent = cdef->base.type->e->parent;
 //  if(parent->e->def && !GET_FLAG(parent, scan2))
-  if(!GET_FLAG(parent, scan2))
+  if(parent->e->def && !GET_FLAG(parent, scan2))
     CHECK_BB(scanx_parent(parent, scan2_cdef, env))
   if(cdef->base.ext->array)
     CHECK_BB(scan2_exp(env, cdef->base.ext->array->exp))