summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-02-28 20:39:53 (GMT)
committerkmu <kmu@hdfgroup.org>2020-02-28 20:39:53 (GMT)
commit8c465e6cffe0c73afb99284135d8f1453fbf3183 (patch)
treef93252b2eb19bf66cd2a9befcc09fae8ac0c52e5 /testpar
parentec0c67ef3ee89b56b4e082fd703d3a71042fcd18 (diff)
downloadhdf5-8c465e6cffe0c73afb99284135d8f1453fbf3183.zip
hdf5-8c465e6cffe0c73afb99284135d8f1453fbf3183.tar.gz
hdf5-8c465e6cffe0c73afb99284135d8f1453fbf3183.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..56e8915 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] = (uint8_t)(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))