comparison src/cmdexpand.c @ 27523:4c7bb6fd383f v8.2.4289

patch 8.2.4289: warnings reported by MSVC Commit: https://github.com/vim/vim/commit/5411910c77cba85212963a2fb71d8c71f8a5d203 Author: K.Takata <kentkt@csc.jp> Date: Thu Feb 3 13:33:03 2022 +0000 patch 8.2.4289: warnings reported by MSVC Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes https://github.com/vim/vim/issues/9689)
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Feb 2022 14:45:03 +0100
parents c9474ae175f4
children 4eb2bf8b2f27
comparison
equal deleted inserted replaced
27522:19898d468c67 27523:4c7bb6fd383f
1991 if (free_pat) 1991 if (free_pat)
1992 vim_free(pat); 1992 vim_free(pat);
1993 #ifdef BACKSLASH_IN_FILENAME 1993 #ifdef BACKSLASH_IN_FILENAME
1994 if (p_csl[0] != NUL && (options & WILD_IGNORE_COMPLETESLASH) == 0) 1994 if (p_csl[0] != NUL && (options & WILD_IGNORE_COMPLETESLASH) == 0)
1995 { 1995 {
1996 int i; 1996 int j;
1997 1997
1998 for (i = 0; i < *num_file; ++i) 1998 for (j = 0; j < *num_file; ++j)
1999 { 1999 {
2000 char_u *ptr = (*file)[i]; 2000 char_u *ptr = (*file)[j];
2001 2001
2002 while (*ptr != NUL) 2002 while (*ptr != NUL)
2003 { 2003 {
2004 if (p_csl[0] == 's' && *ptr == '\\') 2004 if (p_csl[0] == 's' && *ptr == '\\')
2005 *ptr = '/'; 2005 *ptr = '/';