Problem: Warning for using int instead of size_t.
Solution: Change "len" argument to size_t. (Mike Williams)
/* vim9compile.c */
-int check_defined(char_u *p, int len, cctx_T *cctx);
+int check_defined(char_u *p, size_t len, cctx_T *cctx);
type_T *typval2type(typval_T *tv);
int check_type(type_T *expected, type_T *actual, int give_msg);
char_u *skip_type(char_u *start);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1148,
/**/
1147,
/**/
* 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
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);