From eafeed5f94053b89df91c975e61f11659537d29a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 1 Apr 2021 15:26:21 +0200 Subject: [PATCH] :bug: Fix extend_push --- include/env/envset.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/env/envset.h b/include/env/envset.h index ef11dadf..7d840720 100644 --- a/include/env/envset.h +++ b/include/env/envset.h @@ -16,14 +16,14 @@ ANN2(1,3) m_bool envset_push(struct EnvSet*, const Type, const Nspc); ANN2(1) void envset_pop(struct EnvSet*, const Type); ANN static inline m_bool extend_push(const Env env, const Type t) { - if(t->info->parent) - CHECK_BB(extend_push(env, t->info->parent)) + if(t->info->owner_class) + CHECK_BB(extend_push(env, t->info->owner_class)) return env_push_type(env, t); } ANN static inline void extend_pop(const Env env, const Type t) { env_pop(env, 0); - if(t->info->parent) - extend_pop(env, t->info->parent); + if(t->info->owner_class) + extend_pop(env, t->info->owner_class); } #endif -- 2.43.0