diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-07-07 18:04:16 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-07-07 18:04:16 (GMT) |
commit | 2afbcb2f0e536dfdd00c405278154ea4464d866b (patch) | |
tree | 289c75ed09e8adee11474db2bf39698c4ccc16bb /c++/test | |
parent | c889f67f9c3650e0b3008e0c3ab98bf01c078500 (diff) | |
download | hdf5-2afbcb2f0e536dfdd00c405278154ea4464d866b.zip hdf5-2afbcb2f0e536dfdd00c405278154ea4464d866b.tar.gz hdf5-2afbcb2f0e536dfdd00c405278154ea4464d866b.tar.bz2 |
[svn-r8819] Purpose: Potential bug fix
Description: In H5Fget_filesize, file size was returned as haddr_t.
Solution: Return file size as hsize_t and parameter for Fortran.
Platforms tested: eirene
Diffstat (limited to 'c++/test')
-rw-r--r-- | c++/test/tfile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp index 47d06f7..c756e2f 100644 --- a/c++/test/tfile.cpp +++ b/c++/test/tfile.cpp @@ -350,8 +350,9 @@ test_file_size(void) H5File fid( FILE4, H5F_ACC_TRUNC, FileCreatPropList::DEFAULT, fapl); // Get file size - haddr_t file_size = fid.getFileSize(); - CHECK(file_size, FAIL, "H5File::getFileSize"); + hsize_t file_size; + herr_t ret = fid.getFileSize(&file_size); + CHECK(ret, FAIL, "H5File::getFileSize"); // Check if file size is reasonable. It's supposed to be 2KB now. if(file_size<1*KB || file_size>4*KB) |