summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-04-14 04:40:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-04-14 04:40:27 (GMT)
commit974119364da275bd435a29c981a12609be747534 (patch)
tree1c002cdcff0febeff0d67a30e25ebd88337c40aa
parent9b60a446b369bf13be70eba14b6a450cf03cf891 (diff)
downloadhdf5-974119364da275bd435a29c981a12609be747534.zip
hdf5-974119364da275bd435a29c981a12609be747534.tar.gz
hdf5-974119364da275bd435a29c981a12609be747534.tar.bz2
[svn-r6650] Purpose:
New feature. Description: Allow the file to shrink as well as expand when flushing a file before closing it. Platforms tested: FreeBSD 4.8 (sleipnir) w/C++ Linux 2.4 (burrwhite) w/FORTRAN Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/parallel & FORTRAN (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
-rw-r--r--src/H5FDsec2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index 225da14..6cf835c 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -807,7 +807,7 @@ H5FD_sec2_flush(H5FD_t *_file, hid_t UNUSED dxpl_id, unsigned UNUSED closing)
assert(file);
/* Extend the file to make sure it's large enough */
- if (file->eoa>file->eof) {
+ if (file->eoa!=file->eof) {
#ifdef WIN32
/* Map the posix file handle to a Windows file handle */
filehandle = _get_osfhandle(file->fd);