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/popupmenu.c b/src/popupmenu.c
index a7c20c1..294823b 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -478,7 +478,7 @@
else
{
if (matched_len < 0 && MB_STRNICMP(ptr, leader, leader_len) == 0)
- matched_len = leader_len;
+ matched_len = (int)leader_len;
if (matched_len > 0)
{
new_attr = highlight_attr[is_select ? HLF_PMSI : HLF_PMNI];
@@ -765,7 +765,7 @@
MB_PTR_ADV(orig_rt);
last_char = orig_rt;
}
- kept_len = STRLEN(last_char);
+ kept_len = (int)STRLEN(last_char);
new_str = alloc(ellipsis_width + over_cell + kept_len + 1);
if (!new_str)
return;