comparison src/terminal.c @ 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 1a658c5eb326
children 68e3adbeaf20
comparison
equal deleted inserted replaced
24611:478dc6d9fbf0 24612:d957c7bbacf3
4339 int offset = 7; // len of "file://" is 7 4339 int offset = 7; // len of "file://" is 7
4340 char *pos = (char *)frag->str + offset; 4340 char *pos = (char *)frag->str + offset;
4341 char_u *new_dir; 4341 char_u *new_dir;
4342 4342
4343 // remove HOSTNAME to get PWD 4343 // remove HOSTNAME to get PWD
4344 while (*pos != '/' && offset < frag->len) 4344 while (*pos != '/' && offset < (int)frag->len)
4345 { 4345 {
4346 offset += 1; 4346 offset += 1;
4347 pos += 1; 4347 pos += 1;
4348 } 4348 }
4349 4349
4350 if (offset >= frag->len) 4350 if (offset >= (int)frag->len)
4351 { 4351 {
4352 semsg(_(e_failed_to_extract_pwd_from_str_check_your_shell_config), 4352 semsg(_(e_failed_to_extract_pwd_from_str_check_your_shell_config),
4353 frag->str); 4353 frag->str);
4354 return; 4354 return;
4355 } 4355 }