]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix assert
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 30 Mar 2020 15:33:38 +0000 (17:33 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 30 Mar 2020 15:33:38 +0000 (17:33 +0200)
src/parse/check.c

index 1298b859abe8f601dd5540140c6b19f441ccad33..8f85e3307e1aed226b3ea5e50acebb41b33d2500 100644 (file)
@@ -24,7 +24,7 @@ ANN static m_bool check_internal(const Env env, const Symbol sym,
   struct Op_Import opi = { .op=sym, .lhs=e->info->type,
         .rhs=t, .data=(uintptr_t)&imp, .pos=e->pos, .op_type=op_implicit };
   CHECK_OB(op_check(env, &opi))
-  assert(e->nspc);
+  assert(e->info->nspc);
   return GW_OK;
 }