summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/gif2hdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'hl/tools/gif2h5/gif2hdf.c')
-rw-r--r--hl/tools/gif2h5/gif2hdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/tools/gif2h5/gif2hdf.c b/hl/tools/gif2h5/gif2hdf.c
index e3942b7..d844903 100644
--- a/hl/tools/gif2h5/gif2hdf.c
+++ b/hl/tools/gif2h5/gif2hdf.c
@@ -28,7 +28,7 @@ main(int argv , char *argc[])
/* replacing int32 with long */
long i,ImageCount;
- long filesize;
+ size_t filesize;
BYTE *MemGif;
BYTE *StartPos;
@@ -69,7 +69,7 @@ main(int argv , char *argc[])
/* Get the whole file into memory. Mem's much faster than I/O */
fseek(fpGif, 0L , 2);
- filesize = ftell(fpGif);
+ filesize = (size_t)ftell(fpGif);
fseek(fpGif, 0L , 0);
if (filesize == 0) printf("File Size Zero");
if (!(MemGif = StartPos = (BYTE *)malloc(filesize))) {