# HG changeset patch # User Bram Moolenaar # Date 1620497705 -7200 # Node ID d957c7bbacf31ade32e749ecaaf8f3b71cd2e44a # Parent 478dc6d9fbf05acea21a6555a7d9ef5d59fcc7bf patch 8.2.2845: MS-Windows: warning for signed/unsigned comparison Commit: https://github.com/vim/vim/commit/918b08957c51ae079f8f456198f8a1869a3d2a4c Author: Bram Moolenaar Date: Sat May 8 20:09:24 2021 +0200 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2845, +/**/ 2844, /**/ 2843,