summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-09 18:06:45 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:25 (GMT)
commit156bc312ed2a618ae8a6f6f1ab226ab8e63606cc (patch)
tree46039399b9b2a0ab9e4a61b51e5c3cf3322bbd18 /testpar
parenta52f4135f92c9aa59006ba2462ea61cad8771b30 (diff)
downloadhdf5-156bc312ed2a618ae8a6f6f1ab226ab8e63606cc.zip
hdf5-156bc312ed2a618ae8a6f6f1ab226ab8e63606cc.tar.gz
hdf5-156bc312ed2a618ae8a6f6f1ab226ab8e63606cc.tar.bz2
fix test assert fail error
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_mpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testpar/t_mpi.c b/testpar/t_mpi.c
index 91b8f8c..fe78317 100644
--- a/testpar/t_mpi.c
+++ b/testpar/t_mpi.c
@@ -303,7 +303,7 @@ static int test_mpio_gb_file(char *filename) {
mpi_rank, mpi_off, mpi_off);
/* set data to some trivial pattern for easy verification */
for (j = 0; j < MB; j++)
- H5_CHECKED_ASSIGN(*(buf + j), int8_t, i * mpi_size + mpi_rank, int);
+ *(buf + j) = (int8_t)(i * mpi_size + mpi_rank);
if (VERBOSE_MED)
HDfprintf(stdout,
"proc %d: writing %d bytes at offset %lld\n",
@@ -351,7 +351,7 @@ static int test_mpio_gb_file(char *filename) {
mrc = MPI_File_read_at(fh, mpi_off, buf, MB, MPI_BYTE,
&mpi_stat);
INFO((mrc == MPI_SUCCESS), "GB size file read");
- H5_CHECKED_ASSIGN(expected, int8_t, i * mpi_size + (mpi_size - mpi_rank - 1), int);
+ expected = (int8_t)(i * mpi_size + (mpi_size - mpi_rank - 1));
vrfyerrs = 0;
for (j = 0; j < MB; j++) {
if ((*(buf + j) != expected)