perf(library/unifier): avoid unnecessary wasteful computation

This commit is contained in:
Leonardo de Moura 2014-10-16 17:16:49 -07:00
parent fe484b26f3
commit 8974b52f7b

View file

@ -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);
}