]> Nishi Git Mirror - gwion.git/commitdiff
:art: Use type->context in envset_push
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 7 Jul 2020 17:16:46 +0000 (19:16 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 7 Jul 2020 17:16:56 +0000 (19:16 +0200)
src/env/envset.c

index 1b0aa7c58bc70af3ab281a64cb2bb2020b3431e3..b5e77ff13492fd92a6c56b0a5b5c0725a043df58 100644 (file)
@@ -21,7 +21,7 @@ ANN static m_bool push(struct EnvSet *es, const Type t) {
   if(t->e->owner_class)
     CHECK_BB(push(es, t->e->owner_class))
   else
-    env_push(es->env, NULL, es->env->context->nspc);
+    env_push(es->env, NULL, t->e->ctx->nspc);
   if(es->func && !(t->flag & es->flag))
     CHECK_BB(es->func((void*)es->data, t->e->def))
   if(GET_FLAG(t, template))