fix(kernel/environment): is_descendant optimization
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
c843243f64
commit
fca65a9d69
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ bool environment_id::is_descendant(environment_id const & id) const {
|
||||||
while (!is_nil(*it)) {
|
while (!is_nil(*it)) {
|
||||||
if (is_eqp(*it, id.m_trail))
|
if (is_eqp(*it, id.m_trail))
|
||||||
return true;
|
return true;
|
||||||
if (car(*it) >= car(id.m_trail))
|
if (car(*it) < car(id.m_trail))
|
||||||
return false;
|
return false;
|
||||||
it = &cdr(*it);
|
it = &cdr(*it);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue