Patch 8.2.1847

8 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 15, 2020, 7:58:34 AM10/15/20
to vim...@googlegroups.com

Patch 8.2.1847
Problem: Vim9: using negative value for unsigned type.
Solution: Use zero instead of -1.
Files: src/vim9compile.c


*** ../vim-8.2.1846/src/vim9compile.c 2020-10-15 12:46:38.733199522 +0200
--- src/vim9compile.c 2020-10-15 13:56:16.062457332 +0200
***************
*** 1840,1846 ****
return -1;
if (sid == current_sctx.sc_sid)
{
! sallvar_T *sav = find_script_var(name, (size_t)-1, cctx);

if (sav == NULL)
return -2;
--- 1840,1846 ----
return -1;
if (sid == current_sctx.sc_sid)
{
! sallvar_T *sav = find_script_var(name, 0, cctx);

if (sav == NULL)
return -2;
*** ../vim-8.2.1846/src/version.c 2020-10-15 12:46:38.737199511 +0200
--- src/version.c 2020-10-15 13:57:15.282314971 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1847,
/**/

--
From "know your smileys":
:-H Is missing teeth

/// 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