diff options
author | Kimmy Mu <kmu@hdfgroup.org> | 2020-01-06 18:17:10 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2020-01-09 22:15:38 (GMT) |
commit | de28f691ba42e295341ed1098caa1f3b980cc4eb (patch) | |
tree | 52a68c98d4e115da56c27a9310d7e112b82d04bd /src/H5FAcache.c | |
parent | e75b2e3c2c6e47ccb55dddc40822b41c57ff273d (diff) | |
download | hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.zip hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.gz hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.bz2 |
merge intel warning fix
Diffstat (limited to 'src/H5FAcache.c')
-rw-r--r-- | src/H5FAcache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5FAcache.c b/src/H5FAcache.c index 1f199e9..5b4e124 100644 --- a/src/H5FAcache.c +++ b/src/H5FAcache.c @@ -416,7 +416,8 @@ H5FA__cache_hdr_serialize(const H5F_t *f, void *_image, size_t H5_ATTR_UNUSED le *image++ = H5FA_HDR_VERSION; /* Fixed array type */ - *image++ = hdr->cparam.cls->id; + HDassert(hdr->cparam.cls->id <= 255); + *image++ = (uint8_t)hdr->cparam.cls->id; /* General array creation/configuration information */ *image++ = hdr->cparam.raw_elmt_size; /* Element size in file (in bytes) */ @@ -804,7 +805,8 @@ H5FA__cache_dblock_serialize(const H5F_t *f, void *_image, size_t H5_ATTR_UNUSED *image++ = H5FA_DBLOCK_VERSION; /* Fixed array type */ - *image++ = dblock->hdr->cparam.cls->id; + 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 */ H5F_addr_encode(f, &image, dblock->hdr->addr); |