summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorMike Williams <mrmrdubya@gmail.com>2024-06-01 11:33:40 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-01 11:33:40 +0200
commit16b63bd002d48fa0b04f27cf3ccca894e14db378 (patch)
tree4cbe9c87d4719b45a2fcbfbb2e397199bad8dfcc /src/insexpand.c
parentbad9577b9ae7a6ab61ec636aaa1ed7d446ef5db9 (diff)
patch 9.1.0455: MS-Windows: compiler warning for size_t to int conversionv9.1.0455
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>
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index c1374d3e9c..897c3b5870 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -3383,7 +3383,7 @@ done:
get_next_include_file_completion(int compl_type)
{
find_pattern_in_path(compl_pattern, compl_direction,
- compl_patternlen, FALSE, FALSE,
+ (int)compl_patternlen, FALSE, FALSE,
(compl_type == CTRL_X_PATH_DEFINES
&& !(compl_cont_status & CONT_SOL))
? FIND_DEFINE : FIND_ANY, 1L, ACTION_EXPAND,
@@ -3487,7 +3487,7 @@ get_next_cmdline_completion(void)
int num_matches;
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);
}
@@ -4593,7 +4593,7 @@ get_cmdline_compl_info(char_u *line, colnr_T curs_col)
}
compl_patternlen = curs_col;
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
|| compl_xp.xp_context == EXPAND_NOTHING)
// No completion possible, use an empty pattern to get a