updated for version 7.4.657 Problem: Compiler warnings for pointer mismatch. Solution: Add a typecast. (John Marriott)

This commit is contained in:
Bram Moolenaar
2015-03-06 22:00:11 +01:00
committed by Douglas Drumond
parent 7a8791e606
commit e7dc4fe447
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -10181,7 +10181,7 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
if (*path_end != NUL)
backslash_halve(buf + len + 1);
/* add existing file or symbolic link */
if ((flags & EW_ALLLINKS) ? mch_lstat(buf, &sb) >= 0
if ((flags & EW_ALLLINKS) ? mch_lstat((char *)buf, &sb) >= 0
: mch_getperm(buf) >= 0)
{
#ifdef MACOS_CONVERT
@@ -10943,7 +10943,7 @@ addfile(gap, f, flags)
/* if the file/dir/link doesn't exist, may not add it */
if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS)
? mch_lstat(f, &sb) < 0 : mch_getperm(f) < 0))
? mch_lstat((char *)f, &sb) < 0 : mch_getperm(f) < 0))
return;
#ifdef FNAME_ILLEGAL
+2
View File
@@ -756,6 +756,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
657,
/**/
656,
/**/