summaryrefslogtreecommitdiffstats
path: root/src/H5Pencdec.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-08-13 08:36:42 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-08-13 08:36:42 (GMT)
commit5b6bd7c922d81bb6d1877c03e4b012823f03f88a (patch)
tree0b2564076409a5203df189a480f5cd6471aa57e1 /src/H5Pencdec.c
parente874070dbb27994b24860f94ffc53ca1b12211fa (diff)
downloadhdf5-5b6bd7c922d81bb6d1877c03e4b012823f03f88a.zip
hdf5-5b6bd7c922d81bb6d1877c03e4b012823f03f88a.tar.gz
hdf5-5b6bd7c922d81bb6d1877c03e4b012823f03f88a.tar.bz2
Added the map (H5M) API
Diffstat (limited to 'src/H5Pencdec.c')
-rw-r--r--src/H5Pencdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Pencdec.c b/src/H5Pencdec.c
index 8b9962f..2a07a67 100644
--- a/src/H5Pencdec.c
+++ b/src/H5Pencdec.c
@@ -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 */