changeset 25941:965a4823e5ef v8.2.3504

patch 8.2.3504: Vim9: warning for signed vs unsigned Commit: https://github.com/vim/vim/commit/7f32092b9127a71d243bacd31ebb303f2c78a8f1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 13 15:28:28 2021 +0100 patch 8.2.3504: Vim9: warning for signed vs unsigned Problem: Vim9: warning for signed vs unsigned. Solution: Add type cast.
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 Oct 2021 16:30:06 +0200
parents cc0ec4ebcae8
children 831177027281
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -9478,7 +9478,7 @@ compile_cexpr(char_u *line, exarg_T *eap
     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;