summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2019-12-05 18:10:12 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2019-12-09 20:58:29 (GMT)
commit1aea46ce671daf2828ac65d0b8551b369f497922 (patch)
treea77307471815ac8a8ca266aed665b4d101b97415 /src/H5O.c
parent94de95266ac13503fdb48146da5bd646b89c2ffb (diff)
downloadhdf5-1aea46ce671daf2828ac65d0b8551b369f497922.zip
hdf5-1aea46ce671daf2828ac65d0b8551b369f497922.tar.gz
hdf5-1aea46ce671daf2828ac65d0b8551b369f497922.tar.bz2
Fix H5VL_token_t type and fix H5VL_loc_by_token to use H5VL_token_t *
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5O.c b/src/H5O.c
index 7e5694a..3938413 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -290,11 +290,11 @@ H5Oopen_by_addr(hid_t loc_id, haddr_t addr)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5I_INVALID_HID, "invalid VOL object")
/* This is a native specific routine that requires serialization of the token */
- p = obj_token;
+ p = (uint8_t *)&obj_token;
H5F_addr_encode(f, &p, addr);
loc_params.type = H5VL_OBJECT_BY_TOKEN;
- loc_params.loc_data.loc_by_token.token = obj_token;
+ loc_params.loc_data.loc_by_token.token = &obj_token;
loc_params.obj_type = vol_obj_type;
/* Open the object */