mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.1.1376: warnings for size_t/int mixups
Problem: Warnings for size_t/int mixups. Solution: Change types, add type casts. (Mike Williams)
This commit is contained in:
@@ -4990,7 +4990,7 @@ search_stat(
|
|||||||
if (cur > 0)
|
if (cur > 0)
|
||||||
{
|
{
|
||||||
char t[SEARCH_STAT_BUF_LEN] = "";
|
char t[SEARCH_STAT_BUF_LEN] = "";
|
||||||
int len;
|
size_t len;
|
||||||
|
|
||||||
#ifdef FEAT_RIGHTLEFT
|
#ifdef FEAT_RIGHTLEFT
|
||||||
if (curwin->w_p_rl && *curwin->w_p_rlc == 's')
|
if (curwin->w_p_rl && *curwin->w_p_rlc == 's')
|
||||||
|
@@ -1203,7 +1203,7 @@ join_prop_lines(
|
|||||||
size_t oldproplen;
|
size_t oldproplen;
|
||||||
char_u *props;
|
char_u *props;
|
||||||
int i;
|
int i;
|
||||||
int len;
|
size_t len;
|
||||||
char_u *line;
|
char_u *line;
|
||||||
size_t l;
|
size_t l;
|
||||||
|
|
||||||
@@ -1218,8 +1218,8 @@ join_prop_lines(
|
|||||||
// get existing properties of the joined line
|
// get existing properties of the joined line
|
||||||
oldproplen = get_text_props(curbuf, lnum, &props, FALSE);
|
oldproplen = get_text_props(curbuf, lnum, &props, FALSE);
|
||||||
|
|
||||||
len = (int)STRLEN(newp) + 1;
|
len = STRLEN(newp) + 1;
|
||||||
line = alloc(len + (oldproplen + proplen) * (int)sizeof(textprop_T));
|
line = alloc((int)(len + (oldproplen + proplen) * sizeof(textprop_T)));
|
||||||
if (line == NULL)
|
if (line == NULL)
|
||||||
return;
|
return;
|
||||||
mch_memmove(line, newp, len);
|
mch_memmove(line, newp, len);
|
||||||
@@ -1236,7 +1236,7 @@ join_prop_lines(
|
|||||||
vim_free(prop_lines[i]);
|
vim_free(prop_lines[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ml_replace_len(lnum, line, len, TRUE, FALSE);
|
ml_replace_len(lnum, line, (colnr_T)len, TRUE, FALSE);
|
||||||
vim_free(newp);
|
vim_free(newp);
|
||||||
vim_free(prop_lines);
|
vim_free(prop_lines);
|
||||||
vim_free(prop_lengths);
|
vim_free(prop_lengths);
|
||||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1376,
|
||||||
/**/
|
/**/
|
||||||
1375,
|
1375,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user