mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.1.0455: MS-Windows: compiler warning for size_t to int conversion
Problem: MS-Windows: compiler warning for size_t to int conversion Solution: Add a few type casts to resolve warning on Windows (Mike Williams) closes: #14884 Signed-off-by: Mike Williams <mrmrdubya@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
bad9577b9a
commit
16b63bd002
@@ -3383,7 +3383,7 @@ done:
|
|||||||
get_next_include_file_completion(int compl_type)
|
get_next_include_file_completion(int compl_type)
|
||||||
{
|
{
|
||||||
find_pattern_in_path(compl_pattern, compl_direction,
|
find_pattern_in_path(compl_pattern, compl_direction,
|
||||||
compl_patternlen, FALSE, FALSE,
|
(int)compl_patternlen, FALSE, FALSE,
|
||||||
(compl_type == CTRL_X_PATH_DEFINES
|
(compl_type == CTRL_X_PATH_DEFINES
|
||||||
&& !(compl_cont_status & CONT_SOL))
|
&& !(compl_cont_status & CONT_SOL))
|
||||||
? FIND_DEFINE : FIND_ANY, 1L, ACTION_EXPAND,
|
? FIND_DEFINE : FIND_ANY, 1L, ACTION_EXPAND,
|
||||||
@@ -3487,7 +3487,7 @@ get_next_cmdline_completion(void)
|
|||||||
int num_matches;
|
int num_matches;
|
||||||
|
|
||||||
if (expand_cmdline(&compl_xp, compl_pattern,
|
if (expand_cmdline(&compl_xp, compl_pattern,
|
||||||
compl_patternlen, &num_matches, &matches) == EXPAND_OK)
|
(int)compl_patternlen, &num_matches, &matches) == EXPAND_OK)
|
||||||
ins_compl_add_matches(num_matches, matches, FALSE);
|
ins_compl_add_matches(num_matches, matches, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4593,7 +4593,7 @@ get_cmdline_compl_info(char_u *line, colnr_T curs_col)
|
|||||||
}
|
}
|
||||||
compl_patternlen = curs_col;
|
compl_patternlen = curs_col;
|
||||||
set_cmd_context(&compl_xp, compl_pattern,
|
set_cmd_context(&compl_xp, compl_pattern,
|
||||||
compl_patternlen, curs_col, FALSE);
|
(int)compl_patternlen, curs_col, FALSE);
|
||||||
if (compl_xp.xp_context == EXPAND_UNSUCCESSFUL
|
if (compl_xp.xp_context == EXPAND_UNSUCCESSFUL
|
||||||
|| compl_xp.xp_context == EXPAND_NOTHING)
|
|| compl_xp.xp_context == EXPAND_NOTHING)
|
||||||
// No completion possible, use an empty pattern to get a
|
// No completion possible, use an empty pattern to get a
|
||||||
|
@@ -580,7 +580,7 @@ block_insert(
|
|||||||
|
|
||||||
// copy the new text
|
// copy the new text
|
||||||
mch_memmove(newp + startcol, s, slen);
|
mch_memmove(newp + startcol, s, slen);
|
||||||
offset += slen;
|
offset += (int)slen;
|
||||||
|
|
||||||
if (spaces > 0 && !bdp->is_short)
|
if (spaces > 0 && !bdp->is_short)
|
||||||
{
|
{
|
||||||
@@ -607,7 +607,7 @@ block_insert(
|
|||||||
|
|
||||||
if (b_insert)
|
if (b_insert)
|
||||||
// correct any text properties
|
// correct any text properties
|
||||||
inserted_bytes(lnum, startcol, slen);
|
inserted_bytes(lnum, startcol, (int)slen);
|
||||||
|
|
||||||
if (lnum == oap->end.lnum)
|
if (lnum == oap->end.lnum)
|
||||||
{
|
{
|
||||||
@@ -1722,7 +1722,7 @@ op_insert(oparg_T *oap, long count1)
|
|||||||
add = len; // short line, point to the NUL
|
add = len; // short line, point to the NUL
|
||||||
firstline += add;
|
firstline += add;
|
||||||
len -= add;
|
len -= add;
|
||||||
if (pre_textlen >= 0 && (ins_len = len - pre_textlen - offset) > 0)
|
if (pre_textlen >= 0 && (ins_len = (int)len - pre_textlen - offset) > 0)
|
||||||
{
|
{
|
||||||
ins_text = vim_strnsave(firstline, ins_len);
|
ins_text = vim_strnsave(firstline, ins_len);
|
||||||
if (ins_text != NULL)
|
if (ins_text != NULL)
|
||||||
@@ -1866,7 +1866,7 @@ op_change(oparg_T *oap)
|
|||||||
// Shift the properties for linenr as edit() would do.
|
// Shift the properties for linenr as edit() would do.
|
||||||
if (curbuf->b_has_textprop)
|
if (curbuf->b_has_textprop)
|
||||||
adjust_prop_columns(linenr, bd.textcol,
|
adjust_prop_columns(linenr, bd.textcol,
|
||||||
vpos.coladd + ins_len, 0);
|
vpos.coladd + (int)ins_len, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
455,
|
||||||
/**/
|
/**/
|
||||||
454,
|
454,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user