From 974119364da275bd435a29c981a12609be747534 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sun, 13 Apr 2003 23:40:27 -0500 Subject: [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). --- src/H5FDsec2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12