diff options
author | Kimmy Mu <kmu@hdfgroup.org> | 2020-02-29 04:12:16 (GMT) |
---|---|---|
committer | Kimmy Mu <kmu@hdfgroup.org> | 2020-02-29 04:12:16 (GMT) |
commit | 6e565dd271ac9ab105e38a8e2f33123882ced494 (patch) | |
tree | 00cfb12d92f9bea11fc757923d1e2aad441d1e6f | |
parent | 885aa08ec4d074765fd96d62d9b19024d7f1b224 (diff) | |
parent | b5cf422799797cf0b573cc9992f866381bd63054 (diff) | |
download | hdf5-6e565dd271ac9ab105e38a8e2f33123882ced494.zip hdf5-6e565dd271ac9ab105e38a8e2f33123882ced494.tar.gz hdf5-6e565dd271ac9ab105e38a8e2f33123882ced494.tar.bz2 |
Merge pull request #2431 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/type_cast to develop
* commit 'b5cf422799797cf0b573cc9992f866381bd63054':
revert type cast
-rw-r--r-- | testpar/t_mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testpar/t_mpi.c b/testpar/t_mpi.c index 670e02b..9e5d839 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, |