From: fennecdjay Date: Sun, 31 Mar 2019 16:33:01 +0000 (+0200) Subject: :art: :shirt: Remove useless stuff from binary X-Git-Tag: nightly~2583 X-Git-Url: http://10.11.0.4:5575/?a=commitdiff_plain;h=83bb44170cb366179651a2599444cfd5ab17d1fe;p=gwion.git :art: :shirt: Remove useless stuff from binary --- diff --git a/ast b/ast index aad27af2..51494ec4 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit aad27af27cd58925dfde26a7c9d6cfad3a9594b3 +Subproject commit 51494ec4831f9680b42c0156c17be88c598a77b9 diff --git a/src/lib/func.c b/src/lib/func.c index 8af40ef3..77968a03 100644 --- a/src/lib/func.c +++ b/src/lib/func.c @@ -52,10 +52,8 @@ ANN static Type fptr_type(Exp_Binary* bin) { const Symbol sym = func_symbol(nspc->name, c, NULL, i); const Func f = nspc_lookup_func1(nspc, sym); // was lookup2 CHECK_OO(f) - if(compat_func(r_func->def, f->def) > 0) { - bin->func = f; + if(compat_func(r_func->def, f->def) > 0) return r_func->value_ref->type->d.base_type; - } } return NULL; }