summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-03-30 21:47:29 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-03-30 21:47:29 (GMT)
commit972a1bba5dab768d46282c9205c3670a3a6c80e7 (patch)
treebadd6f00fca82d018f1ef11650252b2c6df16157 /tools/lib
parentb1d105ae78e8cf5d40c05702ece5cd3db0826687 (diff)
downloadhdf5-972a1bba5dab768d46282c9205c3670a3a6c80e7.zip
hdf5-972a1bba5dab768d46282c9205c3670a3a6c80e7.tar.gz
hdf5-972a1bba5dab768d46282c9205c3670a3a6c80e7.tar.bz2
[svn-r16629] removed a h5dump test (array type) that has a different bogus output in frebsd (liberty)
removed the call to the file generation in the test generation program removed the binary h5 and ddl from svn tested: linux
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index a1d0696..4955f95 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -944,8 +944,12 @@ h5tools_dump_simple_subset(FILE *stream, const h5tool_format_t *info, hid_t dset
sm_nbytes = p_type_nbytes = H5Tget_size(p_type);
if (ctx.ndims > 0)
- for (i = ctx.ndims; i > 0; --i) {
- sm_size[i - 1] = MIN(total_size[i - 1], H5TOOLS_BUFSIZE / sm_nbytes);
+ for (i = ctx.ndims; i > 0; --i)
+ {
+ hsize_t size = H5TOOLS_BUFSIZE / sm_nbytes;
+ if ( size == 0) /* datum size > H5TOOLS_BUFSIZE */
+ size = 1;
+ sm_size[i - 1] = MIN(total_size[i - 1], size);
sm_nbytes *= sm_size[i - 1];
assert(sm_nbytes > 0);
}