Patch 8.2.2270

3 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 2, 2021, 6:46:54 AM1/2/21
to vim...@googlegroups.com

Patch 8.2.2270
Problem: Warning for size_t to int conversion. (Randall W. Morris)
Solution: Add a type cast.
Files: src/vim9execute.c


*** ../vim-8.2.2269/src/vim9execute.c 2021-01-01 21:05:51.222773812 +0100
--- src/vim9execute.c 2021-01-02 12:44:04.838780632 +0100
***************
*** 1526,1532 ****
if (GA_GROW(&ectx.ec_stack, 1) == FAIL)
goto failed;
SOURCING_LNUM = iptr->isn_lnum;
! if (eval_variable(name, STRLEN(name),
STACK_TV_BOT(0), NULL, TRUE, FALSE) == FAIL)
goto on_error;
++ectx.ec_stack.ga_len;
--- 1526,1532 ----
if (GA_GROW(&ectx.ec_stack, 1) == FAIL)
goto failed;
SOURCING_LNUM = iptr->isn_lnum;
! if (eval_variable(name, (int)STRLEN(name),
STACK_TV_BOT(0), NULL, TRUE, FALSE) == FAIL)
goto on_error;
++ectx.ec_stack.ga_len;
*** ../vim-8.2.2269/src/version.c 2021-01-01 21:34:33.323754984 +0100
--- src/version.c 2021-01-02 12:45:07.218502172 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2270,
/**/

--
hundred-and-one symptoms of being an internet addict:
86. E-mail Deficiency Depression (EDD) forces you to e-mail yourself.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages