Check if subset calculation actually yields a TS in Unity narrowing
This commit is contained in:
@@ -53,7 +53,11 @@ METHOD(listener_t, narrow, bool,
|
|||||||
{ /* got one, replace original TS */
|
{ /* got one, replace original TS */
|
||||||
remote->remove_first(remote, (void**)&orig);
|
remote->remove_first(remote, (void**)&orig);
|
||||||
}
|
}
|
||||||
remote->insert_last(remote, orig->get_subset(orig, current));
|
current = orig->get_subset(orig, current);
|
||||||
|
if (current)
|
||||||
|
{
|
||||||
|
remote->insert_last(remote, current);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
if (orig)
|
if (orig)
|
||||||
|
|||||||
Reference in New Issue
Block a user