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

Change looping over array to be unsigned #830

Merged
merged 1 commit into from
Oct 13, 2022
Merged

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Oct 4, 2022

This way of writing the loops is better and does not invoke undefined behavior or implementation defined behavior since size_t is unsigned

@NAThompson
Copy link
Collaborator

@AtariDreams : Do you have an ASan log I could see? We should also probably add a unit test to ensure this doesn't happen again.

@AZero13
Copy link
Contributor Author

AZero13 commented Oct 11, 2022

@NAThompson No, I just noticed it was undefined behavior.

This way of writing the loops is better and does not invoke undefined behavior or implementation defined behavior since size_t is unsigned.
@AZero13
Copy link
Contributor Author

AZero13 commented Oct 11, 2022

@mborland Ready!

@mborland mborland merged commit a978d95 into boostorg:develop Oct 13, 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.

3 participants