From fa18565d6d0de1bfa5a13a78235652719bdd0a5b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 2 Jul 2019 23:24:02 +0200 Subject: [PATCH] :art: Clean logic --- src/oo/env_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oo/env_utils.c b/src/oo/env_utils.c index 49512631..d41ba904 100644 --- a/src/oo/env_utils.c +++ b/src/oo/env_utils.c @@ -61,7 +61,7 @@ ANN Type find_type(const Env env, ID_List path) { const Symbol xid = path->xid; if(nspc) { Type t = nspc_lookup_type1(nspc, xid); - while(!t && type && type->e->parent && type->e->parent) { + while(!t && type && type->e->parent) { t = nspc_lookup_type1(type->e->parent->nspc, xid); // was lookup2 type = type->e->parent; } -- 2.43.0