Mercurial > vim
changeset 24612:d957c7bbacf3 v8.2.2845
patch 8.2.2845: MS-Windows: warning for signed/unsigned comparison
Commit: https://github.com/vim/vim/commit/918b08957c51ae079f8f456198f8a1869a3d2a4c
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 May 2021 20:15:05 +0200 |
parents | 478dc6d9fbf0 |
children | 2ccff0c26a2f |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);