summaryrefslogtreecommitdiffstats
path: root/c++/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-07-07 18:05:37 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-07-07 18:05:37 (GMT)
commitfde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db (patch)
tree65f39dcc78ac34321b88d445657fae476e01d0c7 /c++/src
parentc949e7c391fe606bf8a680bbc41848d2cd7cc627 (diff)
downloadhdf5-fde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db.zip
hdf5-fde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db.tar.gz
hdf5-fde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db.tar.bz2
[svn-r8820] Purpose: Bug fix
Description: After changing H5Fget_filesize, forgot to update C++. Platforms tested: Tested for 1.6
Diffstat (limited to 'c++/src')
-rw-r--r--c++/src/H5File.cpp8
-rw-r--r--c++/src/H5File.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp
index a45f91e..a39d93f 100644
--- a/c++/src/H5File.cpp
+++ b/c++/src/H5File.cpp
@@ -492,12 +492,14 @@ hid_t H5File::getLocId() const
//--------------------------------------------------------------------------
haddr_t H5File::getFileSize(void) const
{
- haddr_t file_size = H5Fget_filesize(id);
- if( file_size < 0 )
+ herr_t ret;
+
+ ret = H5Fget_filesize(id, size);
+ if( ret < 0 )
{
throw FileIException("H5File::getFileSize", "H5Fget_filesize failed");
}
- return(file_size);
+ return ret;
}
//--------------------------------------------------------------------------
diff --git a/c++/src/H5File.h b/c++/src/H5File.h
index bb20643..d688e6f 100644
--- a/c++/src/H5File.h
+++ b/c++/src/H5File.h
@@ -73,7 +73,7 @@ class H5_DLLCPP H5File : public IdComponent, public CommonFG {
DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const;
// Retrieves the file size of an opened file.
- haddr_t getFileSize() const;
+ herr_t getFileSize(hsize_t *size) const;
// Reopens this file
void reopen();