diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2017-05-25 17:41:57 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2017-05-25 17:41:57 (GMT) |
commit | b3a1d66c09b8bd0c9bd663665a564c47159f4504 (patch) | |
tree | 485608c6b618df1c62e782f5d29d16938308bcd3 /src/H5S.c | |
parent | 3261491a47abc6f397392bfdc5ab8d03675fc012 (diff) | |
download | hdf5-b3a1d66c09b8bd0c9bd663665a564c47159f4504.zip hdf5-b3a1d66c09b8bd0c9bd663665a564c47159f4504.tar.gz hdf5-b3a1d66c09b8bd0c9bd663665a564c47159f4504.tar.bz2 |
Added missing casts for the return value of H5I_object_verify().
(cherry picked from commit 8807f918b9b00916efa822dda0301d3aa9debd80)
Diffstat (limited to 'src/H5S.c')
-rw-r--r-- | src/H5S.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1544,7 +1544,7 @@ H5Sencode(hid_t obj_id, void *buf, size_t *nalloc) H5TRACE3("e", "i*x*z", obj_id, buf, nalloc); /* Check argument and retrieve object */ - if (NULL==(dspace=(H5S_t *)H5I_object_verify(obj_id, H5I_DATASPACE))) + if (NULL == (dspace = (H5S_t *)H5I_object_verify(obj_id, H5I_DATASPACE))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace") if(H5S_encode(dspace, (unsigned char **)&buf, nalloc)<0) |