Patch 8.2.2826

6 views
Skip to first unread message

Bram Moolenaar

unread,
May 3, 2021, 12:59:52 PM5/3/21
to vim...@googlegroups.com

Patch 8.2.2826
Problem: Compiler warnings for int to size_t conversion. (Randall W.
Morris)
Solution: Add type casts.
Files: src/map.c, src/quickfix.c


*** ../vim-8.2.2825/src/map.c 2021-04-30 19:43:06.618062735 +0200
--- src/map.c 2021-05-03 18:53:22.344659976 +0200
***************
*** 1552,1558 ****
escaped = vim_strsave_escape_csi(tb + j);
if (escaped != NULL)
{
! newlen = STRLEN(escaped);
mch_memmove(tb + j, escaped, newlen);
j += newlen;
vim_free(escaped);
--- 1552,1558 ----
escaped = vim_strsave_escape_csi(tb + j);
if (escaped != NULL)
{
! newlen = (int)STRLEN(escaped);
mch_memmove(tb + j, escaped, newlen);
j += newlen;
vim_free(escaped);
*** ../vim-8.2.2825/src/quickfix.c 2021-04-26 21:14:12.713924760 +0200
--- src/quickfix.c 2021-05-03 18:54:35.148469803 +0200
***************
*** 5921,5927 ****
int found_match = FALSE;
long lnum;
colnr_T col;
! int pat_len = STRLEN(spat);

for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum)
{
--- 5921,5927 ----
int found_match = FALSE;
long lnum;
colnr_T col;
! int pat_len = (int)STRLEN(spat);

for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum)
{
*** ../vim-8.2.2825/src/version.c 2021-05-02 20:16:19.991169536 +0200
--- src/version.c 2021-05-03 18:54:56.040414295 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2826,
/**/

--
hundred-and-one symptoms of being an internet addict:
220. Your wife asks for sex and you tell her where to find you on IRC.

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