diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-13 00:47:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-13 00:47:51 +0200 |
commit | ee5cc88a73401e4352660862631117c8319950f7 (patch) | |
tree | a9166f6ea1abf0262694ca06f04b27f7f1829c47 /src/nvim/fileio.c | |
parent | 97331cab675bee00337aed983e9a3e302e28a619 (diff) | |
parent | a4c957bab7270e0631f147f572b8d905d9c7acda (diff) | |
download | rneovim-ee5cc88a73401e4352660862631117c8319950f7.tar.gz rneovim-ee5cc88a73401e4352660862631117c8319950f7.tar.bz2 rneovim-ee5cc88a73401e4352660862631117c8319950f7.zip |
Merge #8851 from janlazo/vim-8.0.1227
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 0858436db3..78fac5acf8 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1380,15 +1380,15 @@ retry: } } else if (fio_flags & FIO_UCS4) { if (fio_flags & FIO_ENDIAN_L) { - u8c = (*--p << 24); - u8c += (*--p << 16); - u8c += (*--p << 8); + u8c = (unsigned)(*--p) << 24; + u8c += (unsigned)(*--p) << 16; + u8c += (unsigned)(*--p) << 8; u8c += *--p; } else { /* big endian */ u8c = *--p; - u8c += (*--p << 8); - u8c += (*--p << 16); - u8c += (*--p << 24); + u8c += (unsigned)(*--p) << 8; + u8c += (unsigned)(*--p) << 16; + u8c += (unsigned)(*--p) << 24; } } else { /* UTF-8 */ if (*--p < 0x80) |