Patch 9.0.0054

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 15, 2022, 3:47:16 PM7/15/22
to vim...@googlegroups.com

Patch 9.0.0054
Problem: Compiler warning for size_t to int conversion.
Solution: Add type cast. (Mike Williams, closes #10741)
Files: src/insexpand.c


*** ../vim-9.0.0053/src/insexpand.c 2022-07-07 19:59:45.466244217 +0100
--- src/insexpand.c 2022-07-15 20:43:12.310408519 +0100
***************
*** 643,649 ****
if (ga_grow(&gap, IOSIZE) == FAIL)
return (char_u *)"[failed]";
STRCPY(gap.ga_data, IObuff);
! gap.ga_len = STRLEN(IObuff);
}
else if (has_mbyte)
p += (*mb_char2bytes)(wca[i++], p);
--- 643,649 ----
if (ga_grow(&gap, IOSIZE) == FAIL)
return (char_u *)"[failed]";
STRCPY(gap.ga_data, IObuff);
! gap.ga_len = (int)STRLEN(IObuff);
}
else if (has_mbyte)
p += (*mb_char2bytes)(wca[i++], p);
*** ../vim-9.0.0053/src/version.c 2022-07-14 17:40:43.006466830 +0100
--- src/version.c 2022-07-15 20:44:40.750229774 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 54,
/**/

--
From "know your smileys":
8<}} Glasses, big nose, beard

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