summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 79bf74f..482725e 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -123,8 +123,8 @@ H5O_dtype_decode_helper(const uint8 **pp, H5T_t *dt)
dt->u.atomic.lsb_pad = H5T_PAD_ZERO;
dt->u.atomic.msb_pad = H5T_PAD_ZERO;
- dt->u.atomic.u.s.pad = flags & 0x0f;
- dt->u.atomic.u.s.cset = (flags>>4) & 0x0f;
+ dt->u.atomic.u.s.pad = (H5T_str_t)(flags & 0x0f);
+ dt->u.atomic.u.s.cset = (H5T_cset_t)((flags>>4) & 0x0f);
break;
case H5T_FLOAT: