diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2024-01-18 17:03:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 17:03:59 (GMT) |
commit | ab11e076bf90ee2f59016bbbc4a781c9142f30b2 (patch) | |
tree | 4531f6cde46e3d3a9376ffebda318e8a76592062 /hl/tools/gif2h5 | |
parent | 5ae4ecc1f20659b3abffcc4098a91e085173017b (diff) | |
download | hdf5-ab11e076bf90ee2f59016bbbc4a781c9142f30b2.zip hdf5-ab11e076bf90ee2f59016bbbc4a781c9142f30b2.tar.gz hdf5-ab11e076bf90ee2f59016bbbc4a781c9142f30b2.tar.bz2 |
Replace off_t with HDoff_t internally (#3944)
off_t is a 32-bit signed value on Windows, so we should use HDoff_t
(which is __int64 on Windows) internally instead.
Also defines HDftell on Windows to be _ftelli64().
Diffstat (limited to 'hl/tools/gif2h5')
-rw-r--r-- | hl/tools/gif2h5/gif2hdf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hl/tools/gif2h5/gif2hdf.c b/hl/tools/gif2h5/gif2hdf.c index 9220655..161761c 100644 --- a/hl/tools/gif2h5/gif2hdf.c +++ b/hl/tools/gif2h5/gif2hdf.c @@ -26,8 +26,8 @@ main(int argv, char *argc[]) FILE *fpGif; /* replacing int32 with long */ - long i, ImageCount; - long filesize; + long i, ImageCount; + HDoff_t filesize; GIFBYTE *MemGif; GIFBYTE *StartPos; @@ -71,7 +71,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 = HDftell(fpGif); fseek(fpGif, 0L, 0); if (filesize == 0) |