summaryrefslogtreecommitdiffstats
path: root/src/H5Zszip.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-05-24 20:13:12 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-05-24 20:13:12 (GMT)
commit8807f918b9b00916efa822dda0301d3aa9debd80 (patch)
treeaf430251d03a0794d7cbc29f0d9f30b800e91cc8 /src/H5Zszip.c
parent710ed6d10a965346ff6e41cc075587c8cf91f08c (diff)
downloadhdf5-8807f918b9b00916efa822dda0301d3aa9debd80.zip
hdf5-8807f918b9b00916efa822dda0301d3aa9debd80.tar.gz
hdf5-8807f918b9b00916efa822dda0301d3aa9debd80.tar.bz2
Added missing casts for the return value of H5I_object_verify().
Diffstat (limited to 'src/H5Zszip.c')
-rw-r--r--src/H5Zszip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Zszip.c b/src/H5Zszip.c
index dd35859..769011c 100644
--- a/src/H5Zszip.c
+++ b/src/H5Zszip.c
@@ -85,7 +85,7 @@ H5Z_can_apply_szip(hid_t H5_ATTR_UNUSED dcpl_id, hid_t type_id, hid_t H5_ATTR_UN
FUNC_ENTER_NOAPI(FAIL)
/* Get datatype */
- if(NULL == (type = H5I_object_verify(type_id, H5I_DATATYPE)))
+ if(NULL == (type = (H5T_t *)H5I_object_verify(type_id, H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
/* Get datatype's size, for checking the "bits-per-pixel" */
@@ -156,7 +156,7 @@ H5Z_set_local_szip(hid_t dcpl_id, hid_t type_id, hid_t space_id)
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID")
/* Get datatype */
- if(NULL == (type = H5I_object_verify(type_id, H5I_DATATYPE)))
+ if(NULL == (type = (H5T_t *)H5I_object_verify(type_id, H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype")
/* Get the filter's current parameters */