comparison src/vim9compile.c @ 19388:3a579cadceb6 v8.2.0252

patch 8.2.0252: Windows compiler warns for using size_t Commit: https://github.com/vim/vim/commit/3dd64608f6183a49c6854652017b928556224935 Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Feb 2020 20:45:09 +0100
parents 8ff84bc1c89b
children 5b6f420e7352
comparison
equal deleted inserted replaced
19387:b3ca959badd3 19388:3a579cadceb6
4425 else 4425 else
4426 { 4426 {
4427 char_u *end; 4427 char_u *end;
4428 char_u *pat; 4428 char_u *pat;
4429 char_u *tofree = NULL; 4429 char_u *tofree = NULL;
4430 size_t len; 4430 int len;
4431 4431
4432 // Push v:exception, push {expr} and MATCH 4432 // Push v:exception, push {expr} and MATCH
4433 generate_instr_type(cctx, ISN_PUSHEXC, &t_string); 4433 generate_instr_type(cctx, ISN_PUSHEXC, &t_string);
4434 4434
4435 end = skip_regexp(p + 1, *p, TRUE, &tofree); 4435 end = skip_regexp(p + 1, *p, TRUE, &tofree);
4438 semsg(_("E1067: Separator mismatch: %s"), p); 4438 semsg(_("E1067: Separator mismatch: %s"), p);
4439 vim_free(tofree); 4439 vim_free(tofree);
4440 return FAIL; 4440 return FAIL;
4441 } 4441 }
4442 if (tofree == NULL) 4442 if (tofree == NULL)
4443 len = end - (p + 1); 4443 len = (int)(end - (p + 1));
4444 else 4444 else
4445 len = end - (tofree + 1); 4445 len = (int)(end - (tofree + 1));
4446 pat = vim_strnsave(p + 1, len); 4446 pat = vim_strnsave(p + 1, len);
4447 vim_free(tofree); 4447 vim_free(tofree);
4448 p += len + 2; 4448 p += len + 2;
4449 if (pat == NULL) 4449 if (pat == NULL)
4450 return FAIL; 4450 return FAIL;