From 91c305443ccad8d0857b41b341bfc91929ae4fcb Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 9 Jun 2003 14:34:55 -0500 Subject: [svn-r7007] Purpose: Bug fix. Description: Changed "x=(x++)%y" to "x=(x+1)%y", since the former was not guaranteed to compile to the latter. Platforms tested: Eyeballed. Misc. update: Pointed out by: Forsythe, Christi --- src/H5Distore.c | 2 +- src/H5Fistore.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Distore.c b/src/H5Distore.c index ffbc6de..80ad9fd 100644 --- a/src/H5Distore.c +++ b/src/H5Distore.c @@ -2327,7 +2327,7 @@ H5F_istore_allocate(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, if (H5F_block_write(f, H5FD_MEM_DRAW, udata.addr, udata.key.nbytes, dxpl_id, chunk)<0) HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "unable to write raw data to file"); } /* end if */ - mpi_round=(++mpi_round)%mpi_size; + mpi_round = (mpi_round+1)%file->mpi_size; /* Indicate that blocks are being written */ blocks_written=1; diff --git a/src/H5Fistore.c b/src/H5Fistore.c index ffbc6de..80ad9fd 100644 --- a/src/H5Fistore.c +++ b/src/H5Fistore.c @@ -2327,7 +2327,7 @@ H5F_istore_allocate(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout, if (H5F_block_write(f, H5FD_MEM_DRAW, udata.addr, udata.key.nbytes, dxpl_id, chunk)<0) HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "unable to write raw data to file"); } /* end if */ - mpi_round=(++mpi_round)%mpi_size; + mpi_round = (mpi_round+1)%file->mpi_size; /* Indicate that blocks are being written */ blocks_written=1; -- cgit v0.12