0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2845: MS-Windows: warning for signed/unsigned comparison

Problem:    MS-Windows: warning for signed/unsigned comparison.
Solution:   Add type cast.
This commit is contained in:
Bram Moolenaar
2021-05-08 20:09:24 +02:00
parent 24f720998f
commit 918b08957c
2 changed files with 4 additions and 2 deletions

View File

@@ -4341,13 +4341,13 @@ sync_shell_dir(VTermStringFragment *frag)
char_u *new_dir; char_u *new_dir;
// remove HOSTNAME to get PWD // remove HOSTNAME to get PWD
while (*pos != '/' && offset < frag->len) while (*pos != '/' && offset < (int)frag->len)
{ {
offset += 1; offset += 1;
pos += 1; pos += 1;
} }
if (offset >= frag->len) if (offset >= (int)frag->len)
{ {
semsg(_(e_failed_to_extract_pwd_from_str_check_your_shell_config), semsg(_(e_failed_to_extract_pwd_from_str_check_your_shell_config),
frag->str); frag->str);

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2845,
/**/ /**/
2844, 2844,
/**/ /**/