]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1849: CI error on different signedness in ex_cmds.c v9.0.1849
authorChristian Brabandt <cb@256bit.org>
Sat, 2 Sep 2023 19:48:46 +0000 (21:48 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 2 Sep 2023 19:50:10 +0000 (21:50 +0200)
Problem:  CI error on different signedness
Solution: cast unsigned to int

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

index 53c7bb5a3762d053dcc1f9e98d800bc38e3709c3..4f1d93244f0218b1ae907ff309b00df9b832d642 100644 (file)
@@ -4651,7 +4651,7 @@ ex_substitute(exarg_T *eap)
                mch_memmove(new_end, sub_firstline + copycol, (size_t)copy_len);
                new_end += copy_len;
 
-               if (new_start_len - copy_len < sublen)
+               if ((int)new_start_len - copy_len < sublen)
                    sublen = new_start_len - copy_len - 1;
 
 #ifdef FEAT_EVAL
index b69c41068720435b04082b14e4e01245d878c128..c94a450d0aab559f6108e38517c718645ecbd63f 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1849,
 /**/
     1848,
 /**/