Mercurial > vim
diff src/vim9script.c @ 21194:afed2045ffc9 v8.2.1148
patch 8.2.1148: warning for using int instead of size_t
Commit: https://github.com/vim/vim/commit/cbb6bdcd8967edc8ad123746d27ec30ccc7c1718
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 6 21:53:17 2020 +0200
patch 8.2.1148: warning for using int instead of size_t
Problem: Warning for using int instead of size_t.
Solution: Change "len" argument to size_t. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Jul 2020 22:00:04 +0200 |
parents | 667192c5938b |
children | 1f4d0375f947 |
line wrap: on
line diff
--- a/src/vim9script.c +++ b/src/vim9script.c @@ -324,7 +324,7 @@ handle_import( if (eval_isnamec1(*arg)) while (eval_isnamec(*arg)) ++arg; - if (check_defined(p, (int)(arg - p), cctx) == FAIL) + if (check_defined(p, arg - p, cctx) == FAIL) goto erret; as_name = vim_strnsave(p, arg - p); arg = skipwhite_and_linebreak(arg, evalarg);