Fix shift-sign issue in Convert.c by r-barnes · Pull Request #7838 · python-pillow/Pillow
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Conversation
Fixes
```
libImaging/Convert.c:513:25: error: signed shift result (0xFF000000) sets the sign bit of the shift expression's type ('int') and becomes negative [-Werror,-Wshift-sign-overflow]
UINT32 trns = (0xff << 24) | ((b & 0xff) << 16) | ((g & 0xff) << 8) | (r & 0xff);
~~~~ ^ ~~
```
This file contains hidden or 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