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)
diff --git a/src/screen.c b/src/screen.c
index 6855bba..8877586 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4855,7 +4855,7 @@
{
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 @@
if (*s == ',' || *s == NUL)
{
- if (round)
+ if (round > 0)
{
if (tab[i].cp == &lcs_chars.tab2)
{
@@ -4924,7 +4924,7 @@
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 @@
else
{
int multispace_pos = 0;
+
while (*s != NUL && *s != ',')
{
c1 = mb_ptr2char_adv(&s);