Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
21193:a762b2e4e72b | 21194:afed2045ffc9 |
---|---|
286 * Check if "p[len]" is already defined, either in script "import_sid" or in | 286 * Check if "p[len]" is already defined, either in script "import_sid" or in |
287 * compilation context "cctx". | 287 * compilation context "cctx". |
288 * Return FAIL and give an error if it defined. | 288 * Return FAIL and give an error if it defined. |
289 */ | 289 */ |
290 int | 290 int |
291 check_defined(char_u *p, int len, cctx_T *cctx) | 291 check_defined(char_u *p, size_t len, cctx_T *cctx) |
292 { | 292 { |
293 if (lookup_script(p, len) == OK | 293 if (lookup_script(p, len) == OK |
294 || (cctx != NULL | 294 || (cctx != NULL |
295 && (lookup_local(p, len, cctx) != NULL | 295 && (lookup_local(p, len, cctx) != NULL |
296 || find_imported(p, len, cctx) != NULL))) | 296 || find_imported(p, len, cctx) != NULL))) |