summaryrefslogtreecommitdiffstats
path: root/src/H5Spoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Spoint.c')
-rw-r--r--src/H5Spoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Spoint.c b/src/H5Spoint.c
index 0a59d67..8ec2ae6 100644
--- a/src/H5Spoint.c
+++ b/src/H5Spoint.c
@@ -1242,7 +1242,8 @@ H5S_point_get_seq_list(const H5S_t *space, unsigned flags, H5S_sel_iter_t *iter,
*nseq=curr_seq;
/* Set the number of bytes used */
- *nbytes=(start_bytes_left-bytes_left);
+ H5_CHECK_OVERFLOW( (start_bytes_left-bytes_left) ,hsize_t,size_t);
+ *nbytes=(size_t)(start_bytes_left-bytes_left);
done:
FUNC_LEAVE_NOAPI(ret_value);