summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 19:31:51 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:19:37 (GMT)
commit2aa85f15eabc9553035b0a89c0fe62ff16a47755 (patch)
treee86d0a48edf349699d3d18e0cee4006bd3e163bf /src
parent224653db64c722ed9f97586d9084b1a1dba2f4b5 (diff)
downloadhdf5-2aa85f15eabc9553035b0a89c0fe62ff16a47755.zip
hdf5-2aa85f15eabc9553035b0a89c0fe62ff16a47755.tar.gz
hdf5-2aa85f15eabc9553035b0a89c0fe62ff16a47755.tar.bz2
Cast to the parameter type, H5VL_token_t *, instead of to unsigned char *.
(H5VL_token_t, too, probably should turn from a typedef for a constant-length array to an array encapsulated in a struct.)
Diffstat (limited to 'src')
-rw-r--r--src/H5Tref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c
index 2e52954..b1bc9e8 100644
--- a/src/H5Tref.c
+++ b/src/H5Tref.c
@@ -709,7 +709,7 @@ H5T__ref_obj_disk_read(H5VL_object_t *src_file, const void *src_buf, size_t src_
/* Get object address */
if(H5R__decode_token_obj_compat((const unsigned char *)src_buf, &src_size,
- (unsigned char *)dst_buf, H5F_SIZEOF_ADDR(src_f)) < 0)
+ (H5VL_token_t *)dst_buf, H5F_SIZEOF_ADDR(src_f)) < 0)
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTDECODE, FAIL, "unable to get object address")
done: