Skip to content

Commit

Permalink
patch 9.0.1849: CI error on different signedness in ex_cmds.c
Browse files Browse the repository at this point in the history
Problem:  CI error on different signedness
Solution: cast unsigned to int

Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
chrisbra committed Sep 2, 2023
1 parent ced2c73 commit c8a0342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ex_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -4651,7 +4651,7 @@ ex_substitute(exarg_T *eap)
mch_memmove(new_end, sub_firstline + copycol, (size_t)copy_len);
new_end += copy_len;

if (new_start_len - copy_len < sublen)
if ((int)new_start_len - copy_len < sublen)
sublen = new_start_len - copy_len - 1;

#ifdef FEAT_EVAL
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1849,
/**/
1848,
/**/
Expand Down

0 comments on commit c8a0342

Please sign in to comment.