]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1853: CI error on different signedness in regexp.c v9.0.1853
authorChristian Brabandt <cb@256bit.org>
Sat, 2 Sep 2023 20:08:43 +0000 (22:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 2 Sep 2023 20:08:43 +0000 (22:08 +0200)
Problem:  CI error on different signedness in regexp.c
          (after patch 9.0.1848)
Solution: Cast strlen() call to int

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/regexp.c
src/version.c

index edd1293a530d9732c860bf6b77dec77924236abf..2c740d303defb0c65b5e086a6fe587254697370d 100644 (file)
@@ -2052,7 +2052,7 @@ vim_regsub_both(
        if (copy)
        {
            if (eval_result[nested] != NULL &&
-                   STRLEN(eval_result[nested]) < destlen)
+                   (int)STRLEN(eval_result[nested]) < destlen)
            {
                STRCPY(dest, eval_result[nested]);
                dst += STRLEN(eval_result[nested]);
index 61fe83b785cab31a1c6bdfad4c86f5edfc2b8bc9..fe1495ab6d7bb3e9b2ae8de585587b3491b52d5b 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1853,
 /**/
     1852,
 /**/