]> granicus.if.org Git - vim/commitdiff
patch 8.2.3504: Vim9: warning for signed vs unsigned v8.2.3504
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Oct 2021 14:28:28 +0000 (15:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Oct 2021 14:28:28 +0000 (15:28 +0100)
Problem:    Vim9: warning for signed vs unsigned.
Solution:   Add type cast.

src/version.c
src/vim9compile.c

index 1be4d5440d7ef5dea9c2bab54ba0ed3fbeadaa96..978e012fcd7bc1702498e299fbbe95753974656a 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3504,
 /**/
     3503,
 /**/
index 5bb0359aeac34b57cd415caedfa24fc53f33476e..effd610ab8f29270ceeee7f541b322a919a0f4c7 100644 (file)
@@ -9478,7 +9478,7 @@ compile_cexpr(char_u *line, exarg_T *eap, cctx_T *cctx)
     int
 check_global_and_subst(char_u *cmd, char_u *arg)
 {
-    if (arg == cmd + 1 && vim_strchr(":-.", *arg) != NULL)
+    if (arg == cmd + 1 && vim_strchr((char_u *)":-.", *arg) != NULL)
     {
        semsg(_(e_separator_not_supported_str), arg);
        return FAIL;