summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2004-06-28 03:14:46 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2004-06-28 03:14:46 (GMT)
commit5935247f99c9e9d192bd8d6c2b72cc055ecb2bcc (patch)
tree589a6353ea84f25eedb8108e3591804eca7eb543 /c++
parent3fe2e8a5139b7a2f11fa628d4c486b9c3591bec3 (diff)
downloadhdf5-5935247f99c9e9d192bd8d6c2b72cc055ecb2bcc.zip
hdf5-5935247f99c9e9d192bd8d6c2b72cc055ecb2bcc.tar.gz
hdf5-5935247f99c9e9d192bd8d6c2b72cc055ecb2bcc.tar.bz2
[svn-r8745] Purpose:
Fixing minor bug Description The new function H5File::getFileSize was missing a return statement. Added it. Platforms: SunOS 5.7 (arabica)
Diffstat (limited to 'c++')
-rw-r--r--c++/src/H5File.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp
index 8bfd676..cced607 100644
--- a/c++/src/H5File.cpp
+++ b/c++/src/H5File.cpp
@@ -177,11 +177,12 @@ FileAccPropList H5File::getAccessPlist() const
// (Raymond Lu)
haddr_t H5File::getFileSize(void) const
{
- haddr_t ret_value = H5Fget_filesize(id);
- if( ret_value < 0 )
+ haddr_t file_size = H5Fget_filesize(id);
+ if( file_size < 0 )
{
throw FileIException("H5File::getFileSize", "H5Fget_filesize failed");
}
+ return file_size;
}
// Calls the C API H5Fclose to close this file. Used by IdComponent::reset