diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2006-03-07 14:32:41 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2006-03-07 14:32:41 (GMT) |
commit | c7b701f657153a7ab13efb4d7cdc4bafc2b7a870 (patch) | |
tree | 11ce1d403ac3e5fc7b7778035f3b05f99a6a6325 /tools/misc | |
parent | 9fc71ccba43a9c8bc97dffa847c3f0b50f408866 (diff) | |
download | hdf5-c7b701f657153a7ab13efb4d7cdc4bafc2b7a870.zip hdf5-c7b701f657153a7ab13efb4d7cdc4bafc2b7a870.tar.gz hdf5-c7b701f657153a7ab13efb4d7cdc4bafc2b7a870.tar.bz2 |
[svn-r12022] Purpose: Small bug fix
Description: Return value from H5Pget_layout is 0 for the compact datasets;
It was assumed in the code that it was always greater than 0; therefore
assertion failed when h5stat walked a compact dataset.
Solution: Fixed assertion statement
Platforms tested: h5stat doesn't have testscript yet; tested manually
with tfilters.h5 file on heping.
Fix is too minor to test it on multiple platforms.
Misc. update:
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/h5stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/misc/h5stat.c b/tools/misc/h5stat.c index 20e76be..e8f1647 100644 --- a/tools/misc/h5stat.c +++ b/tools/misc/h5stat.c @@ -447,7 +447,7 @@ printf("walk: fullname = %s\n", fullname); assert(dcpl > 0); lout = H5Pget_layout(dcpl); - assert(lout > 0); + assert(lout >= 0); /* Track the layout type for dataset */ (iter->dset_layouts[lout])++; |