From: fennecdjay Date: Tue, 2 Jul 2019 21:24:02 +0000 (+0200) Subject: :art: Clean logic X-Git-Tag: nightly~2382^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=refs%2Fpull%2F139%2Fhead;p=gwion.git :art: Clean logic --- 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; }