summaryrefslogtreecommitdiffstats
path: root/src/H5HFtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5HFtest.c')
-rw-r--r--src/H5HFtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5HFtest.c b/src/H5HFtest.c
index 1b1f688..c0ae1f3 100644
--- a/src/H5HFtest.c
+++ b/src/H5HFtest.c
@@ -479,7 +479,7 @@ H5HF_get_id_type_test(const void *_id, unsigned char *obj_type)
HDassert(obj_type);
/* Get the type for a heap ID */
- *obj_type = *id & H5HF_ID_TYPE_MASK;
+ *obj_type = (uint8_t)(*id & H5HF_ID_TYPE_MASK);
FUNC_LEAVE_NOAPI(SUCCEED)
} /* H5HF_get_id_type_test() */