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 MSVC Debug Compiler complain #42

Merged
merged 1 commit into from
Jun 7, 2022
Merged

Fix MSVC Debug Compiler complain #42

merged 1 commit into from
Jun 7, 2022

Conversation

JBenda
Copy link
Owner

@JBenda JBenda commented Jun 7, 2022

When deleting tailing Spaces, it may happen, that we look at the termination byte ('\0'). MSVCs implementation of the String Iterator exits the program when that happens with an out-of-bounds error. To avoid this, we check if string remaining before doing the look ahead.

Fixes #41

@brwarner
Copy link
Collaborator

brwarner commented Jun 7, 2022

Looks great to me!

@JBenda JBenda merged commit 67fdb31 into JBenda:master Jun 7, 2022
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.

Test fails on Debug configuration
2 participants