-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace loop/if condition and reduce signed comparison warnings in av…
…rftfi.c Change (int) poll_index >= (int) addr to poll_index+1 > addr as the former might turn out to be implementation-defined. The latter is always defined and what we want here (poll_index+1 won't overflow). Originally, the condition was poll_index > addr-1, which was always false for addr=0 owing to 2^n modulo arithmetic of unsigned. Also changed a few comparisons so they no longer are between signed and unsigned integers reducing compiler warnings.
- Loading branch information
1 parent
f8dd9bc
commit 56aae55
Showing
1 changed file
with
12 additions
and
14 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