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);
      |                                                          ~~~~~~~~~~~~~~~^~~~~~~~~~
```
This commit is contained in:
Jamaika 2020-11-27 22:02:04 +00:00
parent 9dce07a777
commit cf89688896

View File

@ -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