diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-05-21 13:42:57 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-05-21 13:42:57 (GMT) |
commit | 0da4c416ce4ef703529023465c494b7bab5f138b (patch) | |
tree | e91964be82d7378f0fc06f033be9c4942c585cfe /src/H5Pencdec.c | |
parent | 2d43fb8f02956d95fffb9b6d17f54d46aa8671bb (diff) | |
download | hdf5-0da4c416ce4ef703529023465c494b7bab5f138b.zip hdf5-0da4c416ce4ef703529023465c494b7bab5f138b.tar.gz hdf5-0da4c416ce4ef703529023465c494b7bab5f138b.tar.bz2 |
Brought property list code in line with develop.
Diffstat (limited to 'src/H5Pencdec.c')
-rw-r--r-- | src/H5Pencdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Pencdec.c b/src/H5Pencdec.c index 16dd5a8..7b2ee24 100644 --- a/src/H5Pencdec.c +++ b/src/H5Pencdec.c @@ -428,7 +428,7 @@ H5P__encode(const H5P_genplist_t *plist, hbool_t enc_all_prop, void *buf, /* Iterate over all properties in property list, encoding them */ idx = 0; - if(H5P_iterate_plist(plist, enc_all_prop, &idx, H5P__encode_cb, &udata) < 0) + if(H5P__iterate_plist(plist, enc_all_prop, &idx, H5P__encode_cb, &udata) < 0) HGOTO_ERROR(H5E_PLIST, H5E_BADITER, FAIL, "can't iterate over properties") /* Encode a terminator for list of properties */ @@ -687,7 +687,7 @@ done: on failure. DESCRIPTION Decodes a property list from a binary buffer. The contents of the buffer - contain the values for the correponding properties of the plist. The decode + contain the values for the correponding properties of the plist. The decode callback of a certain property decodes its value from the buffer and sets it in the property list. GLOBAL VARIABLES @@ -722,7 +722,7 @@ H5P__decode(const void *buf) /* Get the type of the property list */ type = (H5P_plist_type_t)*p++; - if(type <= H5P_TYPE_USER || type > H5P_TYPE_LINK_ACCESS) + if(type <= H5P_TYPE_USER || type >= H5P_TYPE_MAX_TYPE) HGOTO_ERROR(H5E_PLIST, H5E_BADRANGE, FAIL, "bad type of encoded information: %u", (unsigned)type) /* Create new property list of the specified type */ |