diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-26 18:38:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 18:38:07 (GMT) |
commit | 58f3d6664e7a2af8d6b1813374ab02d72795a5e1 (patch) | |
tree | 6ea0aa75925b343d756583d3ec746610739e01fd /test/atomic_writer.c | |
parent | d26d674e676446dd2f785ba2895fa72b78025b6e (diff) | |
download | hdf5-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/atomic_writer.c')
-rw-r--r-- | test/atomic_writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/atomic_writer.c b/test/atomic_writer.c index 33252f1..89edfe7 100644 --- a/test/atomic_writer.c +++ b/test/atomic_writer.c @@ -190,7 +190,7 @@ main(int argc, char *argv[]) buf[u] = n; /* Position the file to the proper location */ - if (lseek(fd, (off_t)(n * sizeof(unsigned int)), SEEK_SET) < 0) { + if (lseek(fd, (n * sizeof(unsigned int)), SEEK_SET) < 0) { printf("WRITER: error from lseek\n"); goto error; } /* end if */ |