Mirror of the Vim source from https://github.com/vim/vim
Revisión | d957c7bbacf31ade32e749ecaaf8f3b71cd2e44a (tree) |
---|---|
Tiempo | 2021-05-09 03:15:05 |
Autor | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
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
@@ -4341,13 +4341,13 @@ | ||
4341 | 4341 | char_u *new_dir; |
4342 | 4342 | |
4343 | 4343 | // remove HOSTNAME to get PWD |
4344 | - while (*pos != '/' && offset < frag->len) | |
4344 | + while (*pos != '/' && offset < (int)frag->len) | |
4345 | 4345 | { |
4346 | 4346 | offset += 1; |
4347 | 4347 | pos += 1; |
4348 | 4348 | } |
4349 | 4349 | |
4350 | - if (offset >= frag->len) | |
4350 | + if (offset >= (int)frag->len) | |
4351 | 4351 | { |
4352 | 4352 | semsg(_(e_failed_to_extract_pwd_from_str_check_your_shell_config), |
4353 | 4353 | frag->str); |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 2845, | |
755 | +/**/ | |
754 | 756 | 2844, |
755 | 757 | /**/ |
756 | 758 | 2843, |