From: Jérémie Astor Date: Tue, 30 Jun 2020 21:12:59 +0000 (+0200) Subject: :bug: Fix user operators X-Git-Tag: nightly~1461 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7ce2d9a347c01d8589445674f8d94688a59dd770;p=gwion.git :bug: Fix user operators --- diff --git a/src/parse/func_operator.c b/src/parse/func_operator.c index 82afc43d..e4ecd89c 100644 --- a/src/parse/func_operator.c +++ b/src/parse/func_operator.c @@ -15,7 +15,9 @@ ANN void func_operator(const Func_Def fdef, struct Op_Import *opi) { const Arg_List args = fdef->base->args; opi->lhs = is_unary ? NULL : args ? args->var_decl->value->type : NULL; - opi->rhs = args ? is_unary ? args->var_decl->value->type : - args->next ? args->next->var_decl->value->type : - fdef->base->ret_type : NULL; + if(strcmp(str, "@implicit")) + opi->rhs = args ? is_unary ? args->var_decl->value->type : + (args->next ? args->next->var_decl->value->type : NULL) : NULL; + else + opi->rhs = fdef->base->ret_type; }