summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPeter Cao <xcao@hdfgroup.org>2011-09-14 19:27:08 (GMT)
committerPeter Cao <xcao@hdfgroup.org>2011-09-14 19:27:08 (GMT)
commit0d106f126d51e1559d74b1d3b857aa487fb7b5d6 (patch)
tree74ee8b0dbcb3574ba808d6da7f308a4c582eb230 /tools
parent91f38293fa0d8f040d4dd5592f8d3513a39cca8d (diff)
downloadhdf5-0d106f126d51e1559d74b1d3b857aa487fb7b5d6.zip
hdf5-0d106f126d51e1559d74b1d3b857aa487fb7b5d6.tar.gz
hdf5-0d106f126d51e1559d74b1d3b857aa487fb7b5d6.tar.bz2
[svn-r21386] Fixed a void pointer (need to cast it to char*) because it causes problem on Windows.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5repack/h5repack_refs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/h5repack/h5repack_refs.c b/tools/h5repack/h5repack_refs.c
index 9e403f3..f4aa8ff 100644
--- a/tools/h5repack/h5repack_refs.c
+++ b/tools/h5repack/h5repack_refs.c
@@ -702,16 +702,16 @@ static int copy_refs_attr(hid_t loc_in,
if (ref_comp_size[j] == H5R_OBJ_REF_BUF_SIZE) {
int idx = i*msize+H5Tget_member_offset( mtype_id, (unsigned)ref_comp_index[j]);
hobj_ref_t ref_out;
- if (update_ref_value(attr_id, H5R_OBJECT, (hobj_ref_t *)(buf+idx), fidout, &ref_out, travt)<0)
+ if (update_ref_value(attr_id, H5R_OBJECT, (hobj_ref_t *)(((char *)buf)+idx), fidout, &ref_out, travt)<0)
continue;
- HDmemcpy(buf+idx, &ref_out, ref_comp_size[j]);
+ HDmemcpy(((char *)buf)+idx, &ref_out, ref_comp_size[j]);
} /* if */
else if (ref_comp_size[j] == H5R_DSET_REG_REF_BUF_SIZE) {
int idx = i*msize+H5Tget_member_offset( mtype_id, (unsigned)ref_comp_index[j]);
hdset_reg_ref_t ref_out;
- if (update_ref_value(attr_id, H5R_DATASET_REGION, (hdset_reg_ref_t *)(buf+idx), fidout, &ref_out, travt)<0)
+ if (update_ref_value(attr_id, H5R_DATASET_REGION, (hdset_reg_ref_t *)(((char *)buf)+idx), fidout, &ref_out, travt)<0)
continue;
- HDmemcpy(buf+idx, &ref_out, ref_comp_size[j]);
+ HDmemcpy(((char *)buf)+idx, &ref_out, ref_comp_size[j]);
} /* else if */
} /* j */
} /* i */