diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2024-01-18 17:03:59 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2024-02-14 21:22:42 (GMT) |
commit | 0eb5d91d55d8683b24fc6c9cde233aa4a170b828 (patch) | |
tree | 94ca5bd6ff0ad96b7393cd12eed245d45cb5e3f0 /test | |
parent | c9f56a36b8f0b6af790853007e1dae51b1411fa4 (diff) | |
download | hdf5-0eb5d91d55d8683b24fc6c9cde233aa4a170b828.zip hdf5-0eb5d91d55d8683b24fc6c9cde233aa4a170b828.tar.gz hdf5-0eb5d91d55d8683b24fc6c9cde233aa4a170b828.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 6983c37..1f1430b 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -1808,7 +1808,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 @@ -1818,14 +1818,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"); |