summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKimmy Mu <kmu@hdfgroup.org>2020-02-29 04:12:38 (GMT)
committerKimmy Mu <kmu@hdfgroup.org>2020-02-29 04:12:38 (GMT)
commit3f4c3bd5ed61e604c5005f0322ae394dc2609cc4 (patch)
treef93252b2eb19bf66cd2a9befcc09fae8ac0c52e5
parentec0c67ef3ee89b56b4e082fd703d3a71042fcd18 (diff)
parent8c465e6cffe0c73afb99284135d8f1453fbf3183 (diff)
downloadhdf5-3f4c3bd5ed61e604c5005f0322ae394dc2609cc4.zip
hdf5-3f4c3bd5ed61e604c5005f0322ae394dc2609cc4.tar.gz
hdf5-3f4c3bd5ed61e604c5005f0322ae394dc2609cc4.tar.bz2
Merge pull request #2430 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/type_cast_8 to hdf5_1_8
* commit '8c465e6cffe0c73afb99284135d8f1453fbf3183': revert type cast
-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))