From c7b701f657153a7ab13efb4d7cdc4bafc2b7a870 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Tue, 7 Mar 2006 09:32:41 -0500 Subject: [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: --- tools/misc/h5stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])++; -- cgit v0.12