mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.0252: Windows compiler warns for using size_t
Problem: Windows compiler warns for using size_t. Solution: Change to int. (Mike Williams)
This commit is contained in:
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
252,
|
||||||
/**/
|
/**/
|
||||||
251,
|
251,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -4427,7 +4427,7 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED)
|
|||||||
char_u *end;
|
char_u *end;
|
||||||
char_u *pat;
|
char_u *pat;
|
||||||
char_u *tofree = NULL;
|
char_u *tofree = NULL;
|
||||||
size_t len;
|
int len;
|
||||||
|
|
||||||
// Push v:exception, push {expr} and MATCH
|
// Push v:exception, push {expr} and MATCH
|
||||||
generate_instr_type(cctx, ISN_PUSHEXC, &t_string);
|
generate_instr_type(cctx, ISN_PUSHEXC, &t_string);
|
||||||
@@ -4440,9 +4440,9 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED)
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
if (tofree == NULL)
|
if (tofree == NULL)
|
||||||
len = end - (p + 1);
|
len = (int)(end - (p + 1));
|
||||||
else
|
else
|
||||||
len = end - (tofree + 1);
|
len = (int)(end - (tofree + 1));
|
||||||
pat = vim_strnsave(p + 1, len);
|
pat = vim_strnsave(p + 1, len);
|
||||||
vim_free(tofree);
|
vim_free(tofree);
|
||||||
p += len + 2;
|
p += len + 2;
|
||||||
|
Reference in New Issue
Block a user