summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-07-30 16:25:24 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-07-30 16:26:14 (GMT)
commitff4a9d0ec2e85cf15f769006e92e756a79869ab8 (patch)
tree1f6654046dcc7f47103dcf24e8e5fe1f50035434 /tools/lib/h5tools.c
parent2ece66e999876e78dcc8561ee2a2122e88fb14a1 (diff)
downloadhdf5-ff4a9d0ec2e85cf15f769006e92e756a79869ab8.zip
hdf5-ff4a9d0ec2e85cf15f769006e92e756a79869ab8.tar.gz
hdf5-ff4a9d0ec2e85cf15f769006e92e756a79869ab8.tar.bz2
Warnings reduction in tools
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index d9c6715..55c69a7 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -1670,7 +1670,7 @@ calc_acc_pos(unsigned ndims, hsize_t elmtno, hsize_t *acc, hsize_t *pos)
H5TOOLS_START_DEBUG("");
if(ndims > 0) {
- for(i = 0; i < (size_t) ndims; i++) {
+ for(i = 0; i < (int)ndims; i++) {
if(curr_pos > 0) {
H5TOOLS_DEBUG("curr_pos=%ld - ctx->acc[%d]=%ld", curr_pos, i, acc[i]);
pos[i] = curr_pos / acc[i];