aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_bt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r--src/nvim/regexp_bt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c
index e8878d61d5..ed03bb6172 100644
--- a/src/nvim/regexp_bt.c
+++ b/src/nvim/regexp_bt.c
@@ -522,7 +522,7 @@ static void regmbc(int c)
if (regcode == JUST_CALC_SIZE) {
regsize += utf_char2len(c);
} else {
- regcode += utf_char2bytes(c, regcode);
+ regcode += utf_char2bytes(c, (char *)regcode);
}
}