0
0
mirror of https://github.com/vim/vim.git synced 2025-11-10 10:47:23 -05:00

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>
This commit is contained in:
Yegappan Lakshmanan
2025-04-01 20:38:37 +02:00
committed by Christian Brabandt
parent 2f4aa50c91
commit 7b6add0b4a
6 changed files with 12 additions and 9 deletions

View File

@@ -478,7 +478,7 @@ pum_compute_text_attrs(char_u *text, hlf_T hlf, int user_hlattr)
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 @@ pum_redraw(void)
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;