Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Infinite Loop in findSpan Method by Using std::lower_bound #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mantunezr
Copy link

This pull request addresses an issue in the findSpan method where, under certain conditions, the method could enter an infinite loop during the binary search process.

The primary change involves replacing the custom binary search implementation with the standard std::lower_bound function from the C++ Standard Library. This change not only prevents the infinite loop but also simplifies the code and improves robustness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant