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>2019-11-13 19:31:51 (GMT)
commit15f5a6980d0a319080e84684c799989f3157a857 (patch)
tree181b00faa62bd35ba238bca3ea9bbb37c51ad478 /src
parentb505226ad581f50804ee0a8cb5cb63b85d698dc7 (diff)
downloadhdf5-15f5a6980d0a319080e84684c799989f3157a857.zip
hdf5-15f5a6980d0a319080e84684c799989f3157a857.tar.gz
hdf5-15f5a6980d0a319080e84684c799989f3157a857.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: