Mercurial > vim
comparison src/vim9execute.c @ 23454:5e6a5ccf5dcb v8.2.2270
patch 8.2.2270: warning for size_t to int conversion
Commit: https://github.com/vim/vim/commit/38a434f7ba89ab2602019476219780e07fd8251f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 2 12:45:45 2021 +0100
patch 8.2.2270: warning for size_t to int conversion
Problem: Warning for size_t to int conversion. (Randall W. Morris)
Solution: Add a type cast.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Jan 2021 13:00:05 +0100 |
parents | a8e7acf71fa4 |
children | d2b1269c2c68 |
comparison
equal
deleted
inserted
replaced
23453:b0ea0dd2298a | 23454:5e6a5ccf5dcb |
---|---|
1524 char_u *name = iptr->isn_arg.string; | 1524 char_u *name = iptr->isn_arg.string; |
1525 | 1525 |
1526 if (GA_GROW(&ectx.ec_stack, 1) == FAIL) | 1526 if (GA_GROW(&ectx.ec_stack, 1) == FAIL) |
1527 goto failed; | 1527 goto failed; |
1528 SOURCING_LNUM = iptr->isn_lnum; | 1528 SOURCING_LNUM = iptr->isn_lnum; |
1529 if (eval_variable(name, STRLEN(name), | 1529 if (eval_variable(name, (int)STRLEN(name), |
1530 STACK_TV_BOT(0), NULL, TRUE, FALSE) == FAIL) | 1530 STACK_TV_BOT(0), NULL, TRUE, FALSE) == FAIL) |
1531 goto on_error; | 1531 goto on_error; |
1532 ++ectx.ec_stack.ga_len; | 1532 ++ectx.ec_stack.ga_len; |
1533 } | 1533 } |
1534 break; | 1534 break; |