summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
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 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);
}
//--------------------------------------------------------------------------