[sfnt] Avoid left shift of negative value (#48980).
* src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Use unsigned constant.
This commit is contained in:
parent
16583ccde9
commit
d8ef726611
|
@ -1,4 +1,11 @@
|
|||
2016-09-02 Werner Lemberg <wl@gnu.org>.
|
||||
2016-09-02 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[sfnt] Avoid left shift of negative value (#48980).
|
||||
|
||||
* src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Use unsigned
|
||||
constant.
|
||||
|
||||
2016-09-02 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/smooth/ftgrays.c (gray_hline): Fix clang compiler warnings.
|
||||
|
||||
|
|
|
@ -881,7 +881,7 @@
|
|||
}
|
||||
|
||||
*pwrite++ |= ( ( rval >> nbits ) & 0xFF ) &
|
||||
( ~( 0xFF << w ) << ( 8 - w - x_pos ) );
|
||||
( ~( 0xFFU << w ) << ( 8 - w - x_pos ) );
|
||||
rval <<= 8;
|
||||
|
||||
w = line_bits - w;
|
||||
|
|
Loading…
Reference in New Issue