Mercurial > vim
diff src/vim9compile.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 | d73b6ba20053 |
children | f45ce1ce284c |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -288,7 +288,7 @@ lookup_script(char_u *name, size_t len) * Return FAIL and give an error if it defined. */ int -check_defined(char_u *p, int len, cctx_T *cctx) +check_defined(char_u *p, size_t len, cctx_T *cctx) { if (lookup_script(p, len) == OK || (cctx != NULL