]> Nishi Git Mirror - gwion.git/commitdiff
:art: :shirt: Remove useless stuff from binary
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 31 Mar 2019 16:33:01 +0000 (18:33 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 31 Mar 2019 16:33:01 +0000 (18:33 +0200)
ast
src/lib/func.c

diff --git a/ast b/ast
index aad27af27cd58925dfde26a7c9d6cfad3a9594b3..51494ec4831f9680b42c0156c17be88c598a77b9 160000 (submodule)
--- a/ast
+++ b/ast
@@ -1 +1 @@
-Subproject commit aad27af27cd58925dfde26a7c9d6cfad3a9594b3
+Subproject commit 51494ec4831f9680b42c0156c17be88c598a77b9
index 8af40ef38a43a7ebb59dd2aec37f1664fffb4a84..77968a03128f79fedcbd7a474c928434cb816490 100644 (file)
@@ -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;
 }