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

fast_forward_first_n_chars should use while, not do-while #389

Closed

Conversation

addisoncrump
Copy link
Contributor

This addresses a potential issue where .count (i.e. length) is 0 but the first index is accessed nonetheless.

@addisoncrump
Copy link
Contributor Author

cc @zherczeg

@addisoncrump
Copy link
Contributor Author

@zherczeg, have you had time to review this?

@zherczeg
Copy link
Collaborator

Could you add a test case? Not sure zero number of elements is valid, so there might be another bug here.

@addisoncrump
Copy link
Contributor Author

Hm; in the time that this has been around, my testcase no longer reproduces. I guess this was patched in the meantime somehow.

@zherczeg zherczeg closed this Aug 29, 2024
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.

2 participants