Fix shift UB in mbfilter_utf32.c

This commit is contained in:
Nikita Popov 2019-06-19 14:35:44 +02:00
parent f65046b951
commit ae2bc6297e

View File

@ -138,7 +138,7 @@ int mbfl_filt_conv_utf32_wchar(int c, mbfl_convert_filter *filter)
if (endian) {
n = c & 0xff;
} else {
n = (c & 0xff) << 24;
n = (unsigned) (c & 0xff) << 24;
}
filter->cache = n;
filter->status++;