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-05 20:42:06 (GMT)
commit7b03a1c03633d695b487642e54f897c715f8622e (patch)
treeecd44f86a91f3acedb603ecbc17663df547fdadc /src/H5O.c
parent60756183d9fddba95c7e91ef537d4b351016773f (diff)
downloadhdf5-7b03a1c03633d695b487642e54f897c715f8622e.zip
hdf5-7b03a1c03633d695b487642e54f897c715f8622e.tar.gz
hdf5-7b03a1c03633d695b487642e54f897c715f8622e.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 */