]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix template guess error
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 11:49:56 +0000 (13:49 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 11:49:56 +0000 (13:49 +0200)
src/parse/check.c

index 2a1818df6a04b1e3ca4e2cc1aecd0ac73bad3e78..d792643942c4ad2269da22fb0fcaf47d991bfa78 100644 (file)
@@ -745,7 +745,7 @@ ANN static Type_List check_template_args(const Env env, Exp_Call *exp, const Tmp
     }
     list = list->next;
   }
-  if(args_number > type_number)
+  if(args_number < type_number)
     ERR_O(exp->func->pos, _("not able to guess types for template call."))
   return tl[0];
 }