aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/fileio.c12
-rw-r--r--src/nvim/regexp_nfa.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index af02b7faf2..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 = (unsigned)*--p << 24;
- u8c += (unsigned)*--p << 16;
- u8c += (unsigned)*--p << 8;
+ u8c = (unsigned)(*--p) << 24;
+ u8c += (unsigned)(*--p) << 16;
+ u8c += (unsigned)(*--p) << 8;
u8c += *--p;
} else { /* big endian */
u8c = *--p;
- u8c += (unsigned)*--p << 8;
- u8c += (unsigned)*--p << 16;
- u8c += (unsigned)*--p << 24;
+ u8c += (unsigned)(*--p) << 8;
+ u8c += (unsigned)(*--p) << 16;
+ u8c += (unsigned)(*--p) << 24;
}
} else { /* UTF-8 */
if (*--p < 0x80)
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
index 2536de27c1..29191c14a8 100644
--- a/src/nvim/regexp_nfa.c
+++ b/src/nvim/regexp_nfa.c
@@ -2139,7 +2139,7 @@ static int nfa_regbranch(void)
if (nfa_regconcat() == FAIL)
return FAIL;
- /* Try next concats */
+ // Try next concats
while (peekchr() == Magic('&')) {
skipchr();
// if concat is empty do emit a node