diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-13 20:31:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-13 20:31:28 +0100 |
commit | 3dd64608f6183a49c6854652017b928556224935 (patch) | |
tree | 4fec0073d3fba1eff4efcd960b2e589a02af1de7 /src | |
parent | 7306d6b1c9528dcfe89eb77aa7ef354ffa9605a8 (diff) | |
download | vim-git-3dd64608f6183a49c6854652017b928556224935.tar.gz |
patch 8.2.0252: Windows compiler warns for using size_tv8.2.0252
Problem: Windows compiler warns for using size_t.
Solution: Change to int. (Mike Williams)
Diffstat (limited to 'src')
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9compile.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/version.c b/src/version.c index 8d43c7914..8ebbf491c 100644 --- 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 index 96037d917..c6201be90 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4427,7 +4427,7 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED) 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 UNUSED) 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; |