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 signed/unsigned comparison mismatches #3275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BsAtHome
Copy link
Contributor

Many places had unclear distinction between signed and unsigned types. This results in comparisons that are potentially wrong. This PR fixes all problems identifies when compiling with -Wsign-compare.

Where possible, types were changes to match the actual code. Only few places required explicit casting. The code was not functionally changed, although some places could use a caring hand. But that is for another PR.

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.

1 participant