mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
fix test assert fail error
This commit is contained in:
parent
30ac64d83a
commit
6b1b4b3c0b
@ -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)
|
||||
|
@ -10488,7 +10488,7 @@ H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts,
|
||||
/* Subtract the original value with MULTIPLIER */
|
||||
while(buf_left > 0) {
|
||||
char temp = *int_ptr;
|
||||
H5_CHECKED_ASSIGN(*int_ptr, int8_t, temp - MULTIPLIER, int);
|
||||
*int_ptr = (int8_t)(temp - MULTIPLIER);
|
||||
int_ptr++;
|
||||
buf_left -= sizeof(*int_ptr);
|
||||
} /* end while */
|
||||
@ -10497,7 +10497,7 @@ H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts,
|
||||
/* Add the original value with MULTIPLIER */
|
||||
while(buf_left > 0) {
|
||||
char temp = *int_ptr;
|
||||
H5_CHECKED_ASSIGN(*int_ptr, int8_t, temp + MULTIPLIER, int);
|
||||
*int_ptr = (int8_t)(temp + MULTIPLIER);
|
||||
int_ptr++;
|
||||
buf_left -= sizeof(*int_ptr);
|
||||
} /* end while */
|
||||
|
Loading…
Reference in New Issue
Block a user