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 /test | |
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 'test')
-rw-r--r-- | test/h5test.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/h5test.c b/test/h5test.c index 8efebd7..77a65c2 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -1809,7 +1809,7 @@ h5_get_version_string(H5F_libver_t libver) /*------------------------------------------------------------------------- * Function: h5_compare_file_bytes() * - * Purpose: Helper function to compare two files byte-for-byte. + * Purpose: Helper function to compare two files byte-for-byte * * Return: Success: 0, if files are identical * Failure: -1, if files differ @@ -1819,14 +1819,14 @@ h5_get_version_string(H5F_libver_t libver) int h5_compare_file_bytes(char *f1name, char *f2name) { - FILE *f1ptr = NULL; /* two file pointers */ - FILE *f2ptr = NULL; - off_t f1size = 0; /* size of the files */ - off_t f2size = 0; - char f1char = 0; /* one char from each file */ - char f2char = 0; - off_t ii = 0; - int ret_value = 0; /* for error handling */ + FILE *f1ptr = NULL; /* two file pointers */ + FILE *f2ptr = NULL; + HDoff_t f1size = 0; /* size of the files */ + HDoff_t f2size = 0; + char f1char = 0; /* one char from each file */ + char f2char = 0; + HDoff_t ii = 0; + int ret_value = 0; /* for error handling */ /* Open files for reading */ f1ptr = fopen(f1name, "rb"); |