Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evaluate arg to FITS_IN_8_BITS just once
This had been changed by 9555181 to evaluating multiple times. (sizeof() also is called with the parameter, but that doesn't actually evaluate the parameter.) The previous version of this commit used a comparison with 0xFF, but gcc is smart enough to realise that `comparison is always true due to limited range of data type`, but not smart enough to realise that the sizeof makes that code unreachable. Hence with -Wtype-limits we get thousands of warnings. Using >> defeats the warnings.
- Loading branch information