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 31742c1..2e792fe 100644
--- a/src/map.c
+++ b/src/map.c
@@ -1552,7 +1552,7 @@
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 270810c..9237b4b 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -5921,7 +5921,7 @@
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 a72cd3c..82875de 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2826,
+/**/
2825,
/**/
2824,