From 15f5a6980d0a319080e84684c799989f3157a857 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 13 Nov 2019 13:31:51 -0600 Subject: 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.) --- src/H5Tref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v0.12