1
0
forked from aniani/vim

patch 9.1.0449: MS-Windows: Compiler warnings

Problem:  MS-Windows: Compiler warnings
Solution: Resolve size_t to int warnings

closes: #14874

A couple of warnings in ex_docmd.c have been resolved by modifying their
function argument types, followed by some changes in various function
call sites.  This also allowed removal of some casts to cope with
size_t/int conversion.

Signed-off-by: Mike Williams <mrmrdubya@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Mike Williams
2024-05-30 07:46:30 +02:00
committed by Christian Brabandt
parent 8904d672be
commit 51024bbc1a
8 changed files with 22 additions and 19 deletions

View File

@@ -541,7 +541,7 @@ cs_add_common(
char *ppath = NULL;
int i;
int len;
int usedlen = 0;
size_t usedlen = 0;
char_u *fbuf = NULL;
// get the filename (arg1), expand it, and try to stat it