summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 75ce590..1bb00ef 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -2176,7 +2176,7 @@ H5G_get_comment(H5G_t *loc, const char *name, size_t bufsize, char *buf)
retval = 0;
} else {
strncpy(buf, comment.s, bufsize);
- retval = strlen(comment.s);
+ retval = (intn)strlen(comment.s);
H5O_reset(H5O_NAME, &comment);
}