summaryrefslogtreecommitdiffstats
path: root/test/file_image.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-09-26 18:38:07 (GMT)
committerGitHub <noreply@github.com>2023-09-26 18:38:07 (GMT)
commit58f3d6664e7a2af8d6b1813374ab02d72795a5e1 (patch)
tree6ea0aa75925b343d756583d3ec746610739e01fd /test/file_image.c
parentd26d674e676446dd2f785ba2895fa72b78025b6e (diff)
downloadhdf5-58f3d6664e7a2af8d6b1813374ab02d72795a5e1.zip
hdf5-58f3d6664e7a2af8d6b1813374ab02d72795a5e1.tar.gz
hdf5-58f3d6664e7a2af8d6b1813374ab02d72795a5e1.tar.bz2
Use HDoff_t with lseek consistently (#3600)
lseek on Windows uses __int64 for both the offset and return type instead of off_t like most POSIX systems. This changes ensures we use HDoff_t (which is typdef'd correctly on Windows) w/ lseek.
Diffstat (limited to 'test/file_image.c')
-rw-r--r--test/file_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/file_image.c b/test/file_image.c
index b7d3c27..81b49d6 100644
--- a/test/file_image.c
+++ b/test/file_image.c
@@ -871,7 +871,7 @@ test_get_file_image(const char *test_banner, const int file_name_num, hid_t fapl
HDoff_t off;
/* Position at userblock */
- off = HDlseek(fd, (off_t)USERBLOCK_SIZE, SEEK_SET);
+ off = HDlseek(fd, (HDoff_t)USERBLOCK_SIZE, SEEK_SET);
VERIFY(off >= 0, "HDlseek() failed.");
}