summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-13 15:28:28 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-13 15:28:28 +0100
commit7f32092b9127a71d243bacd31ebb303f2c78a8f1 (patch)
tree7a1e905b344fd1f762f78f8c86b3201c204e36ac
parent7b829268921e8fc1c63c34d245063c1c4e7d21af (diff)
downloadvim-git-7f32092b9127a71d243bacd31ebb303f2c78a8f1.tar.gz
patch 8.2.3504: Vim9: warning for signed vs unsignedv8.2.3504
Problem: Vim9: warning for signed vs unsigned. Solution: Add type cast.
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index 1be4d5440..978e012fc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3504,
+/**/
3503,
/**/
3502,
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;