summaryrefslogtreecommitdiffstats
path: root/src/H5Sall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r--src/H5Sall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c
index bc7a162..a8e5f40 100644
--- a/src/H5Sall.c
+++ b/src/H5Sall.c
@@ -646,7 +646,8 @@ H5S_all_get_seq_list(const H5S_t UNUSED *space, unsigned UNUSED flags, H5S_sel_i
/* Compute the offset in the dataset */
off[0]=iter->all.offset*elem_size;
- len[0]=MIN(maxbytes,bytes_left);
+ H5_CHECK_OVERFLOW(bytes_left,hsize_t,size_t);
+ len[0]=MIN(maxbytes,(size_t)bytes_left);
/* Should only need one sequence for 'all' selections */
*nseq=1;