summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2004-06-28 04:23:31 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2004-06-28 04:23:31 (GMT)
commit52d1e37e8f5861820b0545f40f5233cf73998f9e (patch)
treeb2e4c2b37822f951a7546b1819de1655f94458ee
parenta89057a2cd6e1f939a0021244832fa4f635790bb (diff)
downloadhdf5-52d1e37e8f5861820b0545f40f5233cf73998f9e.zip
hdf5-52d1e37e8f5861820b0545f40f5233cf73998f9e.tar.gz
hdf5-52d1e37e8f5861820b0545f40f5233cf73998f9e.tar.bz2
[svn-r8746] Purpose:
Fixing minor bug Description The new function H5File::getFileSize was missing a return statement. Added one. Platforms: SunOS 5.7 (arabica) Linux 2.4 (eirene)
-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 3f3b714..a45f91e 100644
--- a/c++/src/H5File.cpp
+++ b/c++/src/H5File.cpp
@@ -492,11 +492,12 @@ hid_t H5File::getLocId() const
//--------------------------------------------------------------------------
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);
}
//--------------------------------------------------------------------------