summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-02-28 20:44:56 (GMT)
committerkmu <kmu@hdfgroup.org>2020-02-28 20:44:56 (GMT)
commita0881fa1cfbb735a013581c53f8003a13fb0383a (patch)
tree8973c7a1112f557676b80be53a821f376c79b7a5 /testpar
parent740e1368aae80f5053e61449374fe81f73c136c8 (diff)
downloadhdf5-a0881fa1cfbb735a013581c53f8003a13fb0383a.zip
hdf5-a0881fa1cfbb735a013581c53f8003a13fb0383a.tar.gz
hdf5-a0881fa1cfbb735a013581c53f8003a13fb0383a.tar.bz2
revert type cast
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_mpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testpar/t_mpi.c b/testpar/t_mpi.c
index fe78317..8735cbb 100644
--- a/testpar/t_mpi.c
+++ b/testpar/t_mpi.c
@@ -526,7 +526,7 @@ static int test_mpio_1wMr(char *filename, int special_request) {
* ==================================================*/
irank = 0;
for (i = 0; i < DIMSIZE; i++)
- H5_CHECKED_ASSIGN(writedata[i], uint8_t, irank * DIMSIZE + i, int)
+ writedata[i] = irank * DIMSIZE + i;
mpi_off = irank * DIMSIZE;
/* Only one process writes */
@@ -597,7 +597,7 @@ static int test_mpio_1wMr(char *filename, int special_request) {
return 1;
};
for (i = 0; i < DIMSIZE; i++) {
- H5_CHECKED_ASSIGN(expect_val, uint8_t, irank * DIMSIZE + i, int);
+ expect_val = (uint8_t)(irank * DIMSIZE + i);
if (readdata[i] != expect_val) {
PRINTID;
HDprintf("read data[%d:%d] got %02x, expect %02x\n", irank, i,
@@ -697,7 +697,7 @@ static int test_mpio_derived_dtype(char *filename) {
MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
retcode = 0;
for (i = 0; i < 3; i++)
- H5_CHECKED_ASSIGN(buf[i], int8_t, i + 1, int);
+ buf[i] = (char)(i + 1);
if ((mpi_err = MPI_File_open(MPI_COMM_WORLD, filename,
MPI_MODE_RDWR | MPI_MODE_CREATE, MPI_INFO_NULL, &fh))