summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-09 19:34:55 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-09 19:34:55 (GMT)
commit91c305443ccad8d0857b41b341bfc91929ae4fcb (patch)
tree7ea9da924fa0d26c356a640b76547ca4e70332d4 /src
parent103f7b4c921220c0d5401a46b5a095c32f1f8540 (diff)
downloadhdf5-91c305443ccad8d0857b41b341bfc91929ae4fcb.zip
hdf5-91c305443ccad8d0857b41b341bfc91929ae4fcb.tar.gz
hdf5-91c305443ccad8d0857b41b341bfc91929ae4fcb.tar.bz2
[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 <caforsy@sandia.gov>
Diffstat (limited to 'src')
-rw-r--r--src/H5Distore.c2
-rw-r--r--src/H5Fistore.c2
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;