Skip to content

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