]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix envset_pop
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 31 May 2020 18:13:27 +0000 (20:13 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 31 May 2020 18:13:27 +0000 (20:13 +0200)
src/env/envset.c

index b57df2347f59da9640cb254ae32a249a8e6c65e1..5a7a239bf607cb9b0f4cee5740065a0d91a9a67f 100644 (file)
@@ -49,7 +49,7 @@ ANN2(1) void envset_pop(struct EnvSet *es, const Type t) {
   if(GET_FLAG(t, template))
     nspc_pop_type(es->env->gwion->mp, es->env->curr);
   if(t->e->owner_class)
-    envset_pop(es, t);
+    envset_pop(es, t->e->owner_class);
   else
     env_pop(es->env, es->scope);
 }