From 52d1e37e8f5861820b0545f40f5233cf73998f9e Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Sun, 27 Jun 2004 23:23:31 -0500 Subject: [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) --- c++/src/H5File.cpp | 5 +++-- 1 file 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); } //-------------------------------------------------------------------------- -- cgit v0.12