summaryrefslogtreecommitdiffstats
path: root/src/H5SMcache.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-11-25 18:48:51 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:23 (GMT)
commitbb53a566e8a45490b3179290774c3f1450d7d8dd (patch)
treef63980b1e4a4aed7a0a3cf4c3d7a3f83496c10e1 /src/H5SMcache.c
parent540e50df2898be8cacc151f9e2930d250337a62f (diff)
downloadhdf5-bb53a566e8a45490b3179290774c3f1450d7d8dd.zip
hdf5-bb53a566e8a45490b3179290774c3f1450d7d8dd.tar.gz
hdf5-bb53a566e8a45490b3179290774c3f1450d7d8dd.tar.bz2
fix issues from previous PR comments
Diffstat (limited to 'src/H5SMcache.c')
-rw-r--r--src/H5SMcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5SMcache.c b/src/H5SMcache.c
index ee28fa4..40692cd 100644
--- a/src/H5SMcache.c
+++ b/src/H5SMcache.c
@@ -397,7 +397,7 @@ H5SM__cache_table_serialize(const H5F_t *f, void *_image, size_t len,
*image++ = H5SM_LIST_VERSION;
/* Is message index a list or a B-tree? */
- *image++ = (uint8_t)table->indexes[u].index_type;
+ ASSIGN_TO_SMALLER_SIZE(*image++, uint8_t, table->indexes[u].index_type, int);
/* Type of messages in the index */
UINT16ENCODE(image, table->indexes[u].mesg_types);