From: Bram Moolenaar Date: Sat, 8 May 2021 18:09:24 +0000 (+0200) Subject: patch 8.2.2845: MS-Windows: warning for signed/unsigned comparison X-Git-Tag: v8.2.2845 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=918b08957c51ae079f8f456198f8a1869a3d2a4c;p=vim patch 8.2.2845: MS-Windows: warning for signed/unsigned comparison Problem: MS-Windows: warning for signed/unsigned comparison. Solution: Add type cast. --- diff --git a/src/terminal.c b/src/terminal.c index 7fbff4617..9ff498f73 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -4341,13 +4341,13 @@ sync_shell_dir(VTermStringFragment *frag) char_u *new_dir; // remove HOSTNAME to get PWD - while (*pos != '/' && offset < frag->len) + while (*pos != '/' && offset < (int)frag->len) { offset += 1; pos += 1; } - if (offset >= frag->len) + if (offset >= (int)frag->len) { semsg(_(e_failed_to_extract_pwd_from_str_check_your_shell_config), frag->str); diff --git a/src/version.c b/src/version.c index 68f05af9f..e8827c460 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2845, /**/ 2844, /**/