# HG changeset patch # User Bram Moolenaar # Date 1620061204 -7200 # Node ID 3a3d5ee00574ed4d919a1ea2ce504a3c21db24d1 # Parent 206a2cdcaf8ad9e8b216b6d176cbfcc09fce955d patch 8.2.2826: compiler warnings for int to size_t conversion Commit: https://github.com/vim/vim/commit/551c1aed65817558ac1ece541c246ea585645807 Author: Bram Moolenaar Date: Mon May 3 18:57:05 2021 +0200 patch 8.2.2826: compiler warnings for int to size_t conversion Problem: Compiler warnings for int to size_t conversion. (Randall W. Morris) Solution: Add type casts. diff --git a/src/map.c b/src/map.c --- a/src/map.c +++ b/src/map.c @@ -1552,7 +1552,7 @@ check_abbr( escaped = vim_strsave_escape_csi(tb + j); if (escaped != NULL) { - newlen = STRLEN(escaped); + newlen = (int)STRLEN(escaped); mch_memmove(tb + j, escaped, newlen); j += newlen; vim_free(escaped); diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -5921,7 +5921,7 @@ vgr_match_buflines( int found_match = FALSE; long lnum; colnr_T col; - int pat_len = STRLEN(spat); + int pat_len = (int)STRLEN(spat); for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2826, +/**/ 2825, /**/ 2824,