patch 9.1.1266: MS-Windows: type conversion warnings
Problem: MS-Windows: type conversion warnings
Solution: cast the variables (Yegappan Lakshmanan)
closes: #17027
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/insexpand.c b/src/insexpand.c
index 41aa3f9..3c81749 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -1797,7 +1797,7 @@
if (in_fuzzy_collect)
{
leader = ins_compl_leader();
- leader_len = ins_compl_leader_len();
+ leader_len = (int)ins_compl_leader_len();
}
for (i = 0; i < count && !got_int && !compl_interrupted; i++)
@@ -4642,7 +4642,7 @@
int has_preinsert = ins_compl_preinsert_effect();
if (has_preinsert)
{
- col += ins_compl_leader_len();
+ col += (int)ins_compl_leader_len();
curwin->w_cursor.col = compl_ins_end_col;
}