# HG changeset patch # User Bram Moolenaar # Date 1634135406 -7200 # Node ID 965a4823e5ef4bfab3e6dd948c1dd262e8d0cace # Parent cc0ec4ebcae8460b8986fba25ff4c14899910919 patch 8.2.3504: Vim9: warning for signed vs unsigned Commit: https://github.com/vim/vim/commit/7f32092b9127a71d243bacd31ebb303f2c78a8f1 Author: Bram Moolenaar 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. diff --git a/src/version.c b/src/version.c --- 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 --- 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;