From cf89688896b1bb2a2be123ca374fa2a7c504a9a1 Mon Sep 17 00:00:00 2001 From: Jamaika Date: Fri, 27 Nov 2020 22:02:04 +0000 Subject: [PATCH] ``` tif_win32.c: In function '_tiffSizeProc': tif_win32.c:159:23: warning: passing argument 2 of 'GetFileSizeEx' from incompatible pointer type [-Wincompatible-pointer-types] 159 | if (GetFileSizeEx(fd,&m)) | ^~ | | | ULARGE_INTEGER * In file included from c:\msys1021\x86_64-w64-mingw32\include\winbase.h:18, from c:\msys1021\x86_64-w64-mingw32\include\windows.h:70, from tif_win32.c:32: c:\msys1021\x86_64-w64-mingw32\include\fileapi.h:78:73: note: expected 'PLARGE_INTEGER' {aka 'LARGE_INTEGER *'} but argument is of type 'ULARGE_INTEGER *' 78 | WINBASEAPI WINBOOL WINAPI GetFileSizeEx (HANDLE hFile, PLARGE_INTEGER lpFileSize); | ~~~~~~~~~~~~~~~^~~~~~~~~~ ``` --- libtiff/tif_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtiff/tif_win32.c b/libtiff/tif_win32.c index b3110b23..89645693 100644 --- a/libtiff/tif_win32.c +++ b/libtiff/tif_win32.c @@ -155,7 +155,7 @@ _tiffCloseProc(thandle_t fd) static uint64 _tiffSizeProc(thandle_t fd) { - ULARGE_INTEGER m; + LARGE_INTEGER m; if (GetFileSizeEx(fd,&m)) return(m.QuadPart); else