diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-11-17 21:59:53 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-11-17 21:59:53 (GMT) |
commit | 9e014467b62df66322de63e21be565ed59a079b3 (patch) | |
tree | e6b01ab36a0f2a67c1e3a68b5be10dc5e15f481d /src/H5FDstdio.c | |
parent | cd313a16456934b336902ca509d10187b4d975de (diff) | |
download | hdf5-9e014467b62df66322de63e21be565ed59a079b3.zip hdf5-9e014467b62df66322de63e21be565ed59a079b3.tar.gz hdf5-9e014467b62df66322de63e21be565ed59a079b3.tar.bz2 |
[svn-r1836] Mainly fixed a bug in VL datatype comparisons which was causing non-equal
VL types to compare as equal. Added some asserts to make certain nothing
slips through again. Also cleaned up a few warnings from the SGI compiler.
Diffstat (limited to 'src/H5FDstdio.c')
-rw-r--r-- | src/H5FDstdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c index 2122371..1c42900 100644 --- a/src/H5FDstdio.c +++ b/src/H5FDstdio.c @@ -564,7 +564,7 @@ H5FD_stdio_read(H5FD_t *_file, hid_t dxpl_id, haddr_t addr, hsize_t size, */ if (!(file->op == H5FD_STDIO_OP_READ || file->op==H5FD_STDIO_OP_SEEK) || file->pos != addr) { - if (fseek(file->fp, addr, SEEK_SET) < 0) { + if (fseek(file->fp, (long)addr, SEEK_SET) < 0) { file->op = H5FD_STDIO_OP_UNKNOWN; file->pos = HADDR_UNDEF; H5Epush_ret(func, H5E_IO, H5E_SEEKERROR, "fseek failed", -1); @@ -653,7 +653,7 @@ H5FD_stdio_write(H5FD_t *_file, hid_t dxpl_id, haddr_t addr, */ if (!(file->op == H5FD_STDIO_OP_WRITE || file->op==H5FD_STDIO_OP_SEEK) || file->pos != addr) { - if (fseek(file->fp, addr, SEEK_SET) < 0) { + if (fseek(file->fp, (long)addr, SEEK_SET) < 0) { file->op = H5FD_STDIO_OP_UNKNOWN; file->pos = HADDR_UNDEF; H5Epush_ret(func, H5E_IO, H5E_SEEKERROR, "fseek failed", -1); @@ -718,7 +718,7 @@ H5FD_stdio_flush(H5FD_t *_file) if(file->write_access) { /* Makes sure that the true file size is the same (or larger) than the end-of-address. */ if (file->eoa>file->eof) { - if (fseek(file->fp, file->eoa-1, SEEK_SET)<0) + if (fseek(file->fp, (long)(file->eoa-1), SEEK_SET)<0) H5Epush_ret(func, H5E_IO, H5E_SEEKERROR, "fseek failed", -1); if (fwrite("", 1, 1, file->fp)!=1) H5Epush_ret(func, H5E_IO, H5E_SEEKERROR, "EOF fwrite failed", -1); |