From: Bram Moolenaar Date: Mon, 3 May 2021 16:57:05 +0000 (+0200) Subject: patch 8.2.2826: compiler warnings for int to size_t conversion X-Git-Tag: v8.2.2826 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=551c1aed65817558ac1ece541c246ea585645807;p=vim 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 index 31742c13b..2e792feaa 100644 --- 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 index 270810c31..9237b4b81 100644 --- 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 index a72cd3c05..82875de78 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2826, /**/ 2825, /**/