summaryrefslogtreecommitdiffstats
path: root/src/H5EAcache.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-12-11 16:44:56 (GMT)
committerkmu <kmu@hdfgroup.org>2019-12-11 16:44:56 (GMT)
commit45a62b2d46523c15a7d2bc7f52db2b756b40df26 (patch)
tree9be754803238d1c98cde34ca9d23b3b6e3e7651b /src/H5EAcache.c
parenta00d71b2e26c06a299ac92552b7887ca017fd4d3 (diff)
downloadhdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.zip
hdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.tar.gz
hdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.tar.bz2
fix and address comments
Diffstat (limited to 'src/H5EAcache.c')
-rw-r--r--src/H5EAcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5EAcache.c b/src/H5EAcache.c
index 7b1968e..1fd9c44 100644
--- a/src/H5EAcache.c
+++ b/src/H5EAcache.c
@@ -487,6 +487,7 @@ H5EA__cache_hdr_serialize(const H5F_t *f, void *_image, size_t H5_ATTR_UNUSED le
*image++ = H5EA_HDR_VERSION;
/* Extensible array type */
+ HDassert(hdr->cparam.cls->id <= 255);
*image++ = (uint8_t)hdr->cparam.cls->id;
/* General array creation/configuration information */
@@ -875,6 +876,7 @@ H5EA__cache_iblock_serialize(const H5F_t *f, void *_image, size_t H5_ATTR_UNUSED
*image++ = H5EA_IBLOCK_VERSION;
/* Extensible array type */
+ HDassert(iblock->hdr->cparam.cls->id <= 255);
*image++ = (uint8_t)iblock->hdr->cparam.cls->id;
/* Address of array header for array which owns this block */
@@ -1284,6 +1286,7 @@ H5EA__cache_sblock_serialize(const H5F_t *f, void *_image, size_t H5_ATTR_UNUSED
*image++ = H5EA_SBLOCK_VERSION;
/* Extensible array type */
+ HDassert(sblock->hdr->cparam.cls->id <= 255);
*image++ = (uint8_t)sblock->hdr->cparam.cls->id;
/* Address of array header for array which owns this block */
@@ -1698,6 +1701,7 @@ H5EA__cache_dblock_serialize(const H5F_t *f, void *_image, size_t H5_ATTR_UNUSED
*image++ = H5EA_DBLOCK_VERSION;
/* Extensible array type */
+ HDassert(dblock->hdr->cparam.cls->id <= 255);
*image++ = (uint8_t)dblock->hdr->cparam.cls->id;
/* Address of array header for array which owns this block */