else
interval_stack_push (stack, node->right);
}
- if (node->left != &tree->nil && pos <= node->left->limit)
+ if (node->left != &tree->nil
+ && pos <= node->left->limit + node->left->offset)
interval_stack_push (stack, node->left);
/* node->begin == pos implies no front-advance. */
else
interval_stack_push (stack, node->right);
}
- if (node->left != &tree->nil && pos <= node->left->limit)
+ if (node->left != &tree->nil
+ && pos <= node->left->limit + node->left->offset)
interval_stack_push (stack, node->left);
if (pos < node->begin)