-
-
Notifications
You must be signed in to change notification settings - Fork 262
Change FB_NELEM return type to unsigned and resolve all FB_NELEM related Wsign-compare warnings #8338
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 FB_NELEM return type to unsigned and resolve all FB_NELEM related Wsign-compare warnings #8338
Conversation
…related `Wsign-compare` warnings
dyemanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a few minor comments, but I'm not going to insist if you consider it unnecessary.
|
I've missed one warning in the sort.cpp file and fixed it in the last commit |
|
A lot of conflict will be caused by this PR to others. Perhaps they should be merged first. |
Hello. I think enough time has passed to merge it |
|
Still over 60 pull requests in the queue before yours. |
True, but they're reviewed/merged out of order. If some of them are affected (I highly doubt there will be many), they'll need to be updated before merging. |
FB_NELEMreturns the size of the input array, which is always unsigned, but the function returns an int. It is a bit confusing, so I decided to change the type. It fixed someWsign-comparewarnings but added a bunch of new ones. Therefore, I included resolving them in the PR.