{
/* Process in pre-order. */
interval_tree_inherit_offset (tree->otick, node);
+ if (pos > node->limit)
+ continue;
if (node->right != NULL)
{
if (node->begin > pos)
else
interval_stack_push (stack, node->right);
}
- if (node->left != NULL
- && pos <= node->left->limit + node->left->offset)
+ if (node->left != NULL)
interval_stack_push (stack, node->left);
if (before_markers
{
node = nav_nodeptr (nav);
interval_tree_inherit_offset (tree->otick, node);
+ if (pos > node->limit)
+ continue;
if (node->right != NULL)
{
if (node->begin > pos + length)
else
interval_stack_push (stack, node->right);
}
- if (node->left != NULL
- && pos <= node->left->limit + node->left->offset)
+ if (node->left != NULL)
interval_stack_push (stack, node->left);
if (pos < node->begin)