aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-09-19 13:13:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-09-19 13:13:44 +0800
commitf4ce4c1677819472d1b094ef31b8db9c2549e55e (patch)
tree06a2af676c69cab0182e0389ce173b567c9cb790 /src/nvim/option.c
parenta348c666a3ffd73bf7918c3904d0adc325c08465 (diff)
downloadrneovim-f4ce4c1677819472d1b094ef31b8db9c2549e55e.tar.gz
rneovim-f4ce4c1677819472d1b094ef31b8db9c2549e55e.tar.bz2
rneovim-f4ce4c1677819472d1b094ef31b8db9c2549e55e.zip
vim-patch:8.2.3437: compiler warnings for 32/64 bit usage
Problem: Compiler warnings for 32/64 bit usage. Solution: Add type casts. (Mike Williams, closes vim/vim#8870) https://github.com/vim/vim/commit/f5785cf0592626ec17676e814d3ba58f5123bcda
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 5d5d803646..d3056aaa83 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -3558,7 +3558,7 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set)
}
}
if (*s == ',' || *s == NUL) {
- if (round) {
+ if (round > 0) {
if (tab[i].cp == &wp->w_p_lcs_chars.tab2) {
wp->w_p_lcs_chars.tab1 = c1;
wp->w_p_lcs_chars.tab2 = c2;
@@ -3574,7 +3574,7 @@ static char_u *set_chars_option(win_T *wp, char_u **varp, bool set)
}
if (i == entries) {
- len = STRLEN("multispace");
+ len = (int)STRLEN("multispace");
if ((varp == &p_lcs || varp == &wp->w_p_lcs)
&& STRNCMP(p, "multispace", len) == 0
&& p[len] == ':'