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 sign comparison warning, which broke 32-bit builds. #388

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

rpavlik
Copy link
Contributor

@rpavlik rpavlik commented Jun 20, 2022

This seems like the correct cast to make here: rh_head likely to be in the range of next_idx (ptrdiff_t) while next_idx might be negative and thus meaningless if cast to unsigned.

This causes a warning on most platforms and had broken the 32-bit Windows build (because of treating warnings as errors) - see microsoft/vcpkg#24310 (comment)

This PR assumes that 32-bit windows support is not intentionally omitted, see #382

@litespeedtech litespeedtech merged commit 4e852fc into litespeedtech:master Jun 20, 2022
@rpavlik rpavlik deleted the sign-problem branch June 20, 2022 19:57
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