Fix shift-sign issue in Convert.c by r-barnes · Pull Request #7838 · python-pillow/Pillow

Skip to content

Navigation Menu

Sign in

Appearance settings

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);
                   ~~~~ ^  ~~
```

radarhere

radarhere

radarhere

radarhere

radarhere

nulano added a commit to nulano/Pillow that referenced this pull request

Mar 9, 2024