0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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 #8870)
This commit is contained in:
Mike Williams
2021-09-13 22:17:38 +02:00
committed by Bram Moolenaar
parent a29856fcdc
commit f5785cf059
4 changed files with 8 additions and 5 deletions

View File

@@ -4855,7 +4855,7 @@ set_chars_option(win_T *wp, char_u **varp)
{
lcs_chars.tab1 = NUL;
lcs_chars.tab3 = NUL;
if (multispace_len)
if (multispace_len > 0)
{
lcs_chars.multispace = ALLOC_MULT(int, multispace_len + 1);
lcs_chars.multispace[multispace_len] = NUL;
@@ -4904,7 +4904,7 @@ set_chars_option(win_T *wp, char_u **varp)
if (*s == ',' || *s == NUL)
{
if (round)
if (round > 0)
{
if (tab[i].cp == &lcs_chars.tab2)
{
@@ -4924,7 +4924,7 @@ set_chars_option(win_T *wp, char_u **varp)
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] == ':'
@@ -4951,6 +4951,7 @@ set_chars_option(win_T *wp, char_u **varp)
else
{
int multispace_pos = 0;
while (*s != NUL && *s != ',')
{
c1 = mb_ptr2char_adv(&s);