mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Silence warning: left shift of negative value
Import the change from upstream 16c83cd5fc4c18954c1b6e3de16c37ba
This commit is contained in:
parent
a27d49b6f2
commit
f7285ff405
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ static void rjpeg_build_fast_ac(int16_t *fast_ac, rjpeg_huffman *h)
|
|||
int k = ((i << len) & ((1 << FAST_BITS) - 1)) >> (FAST_BITS - magbits);
|
||||
int m = 1 << (magbits - 1);
|
||||
if (k < m)
|
||||
k += (-1 << magbits) + 1;
|
||||
k += (~0U << magbits) + 1;
|
||||
|
||||
/* if the result is small enough, we can fit it in fast_ac table */
|
||||
if (k >= -128 && k <= 127)
|
||||
|
|
Loading…
Add table
Reference in a new issue