-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platsch: fix sign compare for int/unsigned
The sizeof operator will return a long unsigned int which raises a sign compare issue when compared to int. Also fix similar issues where we compare an int with an unsigned int by casting the unsigned int to int using INT_MAX as the limit. Signed-off-by: Rouven Czerwinski <[email protected]>
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters