diff options
Diffstat (limited to 'src/H5Farray.c')
-rw-r--r-- | src/H5Farray.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5Farray.c b/src/H5Farray.c index 859f7ae..7d046cd 100644 --- a/src/H5Farray.c +++ b/src/H5Farray.c @@ -265,8 +265,7 @@ H5F_arr_read(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, */ unsigned long max, min, temp; - temp = nelmts; - assert(temp==nelmts); /* verify no overflow */ + H5_ASSIGN_OVERFLOW(temp,nelmts,hsize_t,unsigned long); MPI_Allreduce(&temp, &max, 1, MPI_UNSIGNED_LONG, MPI_MAX, H5FD_mpio_communicator(f->shared->lf)); MPI_Allreduce(&temp, &min, 1, MPI_UNSIGNED_LONG, MPI_MIN, @@ -516,8 +515,7 @@ H5F_arr_write(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, */ unsigned long max, min, temp; - temp = nelmts; - assert(temp==nelmts); /* verify no overflow */ + H5_ASSIGN_OVERFLOW(temp,nelmts,hsize_t,unsigned long); MPI_Allreduce(&temp, &max, 1, MPI_UNSIGNED_LONG, MPI_MAX, H5FD_mpio_communicator(f->shared->lf)); MPI_Allreduce(&temp, &min, 1, MPI_UNSIGNED_LONG, MPI_MIN, |