From: Bram Moolenaar Date: Wed, 13 Oct 2021 14:28:28 +0000 (+0100) Subject: patch 8.2.3504: Vim9: warning for signed vs unsigned X-Git-Tag: v8.2.3504 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f32092b9127a71d243bacd31ebb303f2c78a8f1;p=vim patch 8.2.3504: Vim9: warning for signed vs unsigned Problem: Vim9: warning for signed vs unsigned. Solution: Add type cast. --- diff --git a/src/version.c b/src/version.c index 1be4d5440..978e012fc 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3504, /**/ 3503, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 5bb0359ae..effd610ab 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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;