# HG changeset patch # User Bram Moolenaar # Date 1581623109 -3600 # Node ID 3a579cadceb6d2d792051b13a1a9995eeb7d6a92 # Parent b3ca959badd383527eee89580d42e165654ca992 patch 8.2.0252: Windows compiler warns for using size_t Commit: https://github.com/vim/vim/commit/3dd64608f6183a49c6854652017b928556224935 Author: Bram Moolenaar Date: Thu Feb 13 20:31:28 2020 +0100 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) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 252, +/**/ 251, /**/ 250, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4427,7 +4427,7 @@ compile_catch(char_u *arg, cctx_T *cctx char_u *end; char_u *pat; char_u *tofree = NULL; - size_t len; + int len; // Push v:exception, push {expr} and MATCH generate_instr_type(cctx, ISN_PUSHEXC, &t_string); @@ -4440,9 +4440,9 @@ compile_catch(char_u *arg, cctx_T *cctx return FAIL; } if (tofree == NULL) - len = end - (p + 1); + len = (int)(end - (p + 1)); else - len = end - (tofree + 1); + len = (int)(end - (tofree + 1)); pat = vim_strnsave(p + 1, len); vim_free(tofree); p += len + 2;