diff options
author | kmu <kmu@hdfgroup.org> | 2019-12-04 02:52:55 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:25 (GMT) |
commit | 1d46e823172046f259eb054370ea721eacad79b1 (patch) | |
tree | 11528139965614d2398171c275243eb55d1bd0b5 /src/H5Osdspace.c | |
parent | fb8f955a73a41de8fa457424c4622f6dc072f53d (diff) | |
download | hdf5-1d46e823172046f259eb054370ea721eacad79b1.zip hdf5-1d46e823172046f259eb054370ea721eacad79b1.tar.gz hdf5-1d46e823172046f259eb054370ea721eacad79b1.tar.bz2 |
fix intel compile warnings
Diffstat (limited to 'src/H5Osdspace.c')
-rw-r--r-- | src/H5Osdspace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Osdspace.c b/src/H5Osdspace.c index b4f00ea..83bc2b4 100644 --- a/src/H5Osdspace.c +++ b/src/H5Osdspace.c @@ -256,8 +256,9 @@ H5O_sdspace_encode(H5F_t *f, uint8_t *p, const void *_mesg) *p++ = (uint8_t)flags; /* Dataspace type */ - if(sdim->version > H5O_SDSPACE_VERSION_1) - *p++ = sdim->type; + if(sdim->version > H5O_SDSPACE_VERSION_1) { + H5_CHECKED_ASSIGN(*p++, uint8_t, sdim->type, int); + } else { *p++ = 0; /*reserved*/ *p++ = 0; /*reserved*/ |