From: Steve Hay Date: Fri, 22 Jul 2005 10:29:51 +0000 (+0000) Subject: Silence Win32 warnings when not using USE_LARGE_FILES X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8859a7a0b5d2e549800ebdce5712e285a2861e3d;p=p5sagit%2Fp5-mst-13.2.git Silence Win32 warnings when not using USE_LARGE_FILES p4raw-id: //depot/perl@25211 --- diff --git a/win32/win32.c b/win32/win32.c index 86bf44e..6cbc08a 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2642,7 +2642,7 @@ win32_fseek(FILE *pf, Off_t offset,int origin) return fsetpos(pf, &offset); #endif #else - return fseek(pf, offset, origin); + return fseek(pf, (long)offset, origin); #endif } @@ -3192,7 +3192,7 @@ finish: win32_lseek(fd, cur, SEEK_SET); return retval; #else - return chsize(fd, size); + return chsize(fd, (long)size); #endif } @@ -3218,7 +3218,7 @@ win32_lseek(int fd, Off_t offset, int origin) return _lseeki64(fd, offset, origin); #endif #else - return lseek(fd, offset, origin); + return lseek(fd, (long)offset, origin); #endif }