summaryrefslogtreecommitdiffstats
path: root/src/H5Olink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Olink.c')
-rw-r--r--src/H5Olink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Olink.c b/src/H5Olink.c
index 39cbfc6..a4449f0 100644
--- a/src/H5Olink.c
+++ b/src/H5Olink.c
@@ -324,7 +324,7 @@ H5O_link_encode(H5F_t *f, hbool_t UNUSED disable_shared, uint8_t *p, const void
/* Store the link name's length */
switch(link_flags & H5O_LINK_NAME_SIZE) {
case 0: /* 1 byte size */
- *p++ = len;
+ *p++ = (uint8_t)len;
break;
case 1: /* 2 byte size */