summaryrefslogtreecommitdiffstats
path: root/src/H5Smpio.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2001-07-19 20:31:37 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2001-07-19 20:31:37 (GMT)
commit61a6e70c427f3f4df684a0bab211df75185af818 (patch)
tree0cd90ddecea4078c6c0173b62f952ab1891683cd /src/H5Smpio.c
parentdf7214c646ab34c598e20fe9072a1ea55a462798 (diff)
downloadhdf5-61a6e70c427f3f4df684a0bab211df75185af818.zip
hdf5-61a6e70c427f3f4df684a0bab211df75185af818.tar.gz
hdf5-61a6e70c427f3f4df684a0bab211df75185af818.tar.bz2
[svn-r4240]
Purpose: Bug fix. Description: Daily test fails in parallel collective write testing on eirene. Solution: In function H5S_mpio_spaces_xfer in H5Smpio.c, changed mpi_count from hsize_t to size_t. Platforms tested: MPICH(Linux, SunOS, IRIX64), SGI MPI.
Diffstat (limited to 'src/H5Smpio.c')
-rw-r--r--src/H5Smpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Smpio.c b/src/H5Smpio.c
index 2a41d3f..a75ab6c 100644
--- a/src/H5Smpio.c
+++ b/src/H5Smpio.c
@@ -559,7 +559,7 @@ H5S_mpio_spaces_xfer(H5F_t *f, const struct H5O_layout_t *layout,
herr_t ret_value = SUCCEED;
int err;
haddr_t disp, addr;
- hsize_t mpi_count;
+ size_t mpi_count;
hsize_t mpi_buf_count, mpi_unused_count;
MPI_Datatype mpi_buf_type, mpi_file_type;
hbool_t mbt_is_derived=0,
@@ -652,6 +652,7 @@ H5S_mpio_spaces_xfer(H5F_t *f, const struct H5O_layout_t *layout,
H5FD_mpio_setup(f->shared->lf, mpi_buf_type, mpi_file_type, disp, 1);
/* transfer the data */
+ H5_CHECK_OVERFLOW(mpi_buf_count, hsize_t, size_t);
mpi_count = (size_t)mpi_buf_count;
if (mpi_count != mpi_buf_count) {
HGOTO_ERROR(H5E_DATASPACE, H5E_BADTYPE, FAIL,