commit | 7a4179c4c6a4ff44e74704e8904db6b76fa34c36 | [log] [tgz] |
---|---|---|
author | James Legg <jlegg@feralinteractive.com> | Fri May 29 13:05:37 2020 +0100 |
committer | James Legg <jlegg@feralinteractive.com> | Fri May 29 13:05:37 2020 +0100 |
tree | 8909b965175e4c9646f1fd0b2b14b69a128cf379 | |
parent | 8e7e9e62673e12d2b7a3504f3f01c0d862d0f6f1 [diff] |
SDL_blit: Fix undefined bitshift operations Arithmatic operations promote Uint8 to signed int. If the top bit of a Uint8 is set, and it is left shifted 24 places, then the result is not representable in a signed 32 bit int. This would be undefined behaviour on systems where int is 32 bits.