From: dirk Date: Thu, 12 Dec 2013 07:51:40 +0000 (+0000) Subject: Fixed warnings. X-Git-Tag: 7.0.1-0~3047 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4610113c936099f5ad7fc50a90ca5a4707e73f0a;p=imagemagick Fixed warnings. --- diff --git a/MagickCore/nt-base.c b/MagickCore/nt-base.c index 2216df549..f2373bd85 100644 --- a/MagickCore/nt-base.c +++ b/MagickCore/nt-base.c @@ -2239,8 +2239,8 @@ MagickPrivate int NTTruncateFile(int file,off_t length) high, low; - file_handle=_get_osfhandle(file); - if (file_handle == -1L) + file_handle=(HANDLE)_get_osfhandle(file); + if (file_handle == (HANDLE)-1L) return(-1); low=(long) (length & 0xffffffffUL); high=(long) ((((MagickOffsetType) length) >> 32) & 0xffffffffUL);