1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2020-07-06 21:53:17 +02:00
parent 27321dbeed
commit cbb6bdcd89
4 changed files with 5 additions and 3 deletions

View File

@@ -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);