perf(library/unifier): avoid unnecessary wasteful computation
This commit is contained in:
parent
fe484b26f3
commit
8974b52f7b
1 changed files with 1 additions and 1 deletions
|
@ -1440,7 +1440,7 @@ struct unifier_fn {
|
|||
num++;
|
||||
t = binding_body(t);
|
||||
}
|
||||
if (num == margs.size())
|
||||
if (num >= margs.size())
|
||||
return mtype;
|
||||
return ensure_sufficient_args_core(mtype, 0, cs);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue