A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -Wextra to CFLAGS too.
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
coll
/
scatter3.c
diff --git
a/teshsuite/smpi/mpich3-test/coll/scatter3.c
b/teshsuite/smpi/mpich3-test/coll/scatter3.c
index
84e88bb
..
12cbb47
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/coll/scatter3.c
+++ b/
teshsuite/smpi/mpich3-test/coll/scatter3.c
@@
-39,7
+39,7
@@
int main(int argc, char **argv)
MPI_Type_vector(n, 1, stride, MPI_DOUBLE, &vec);
MPI_Type_commit(&vec);
MPI_Type_extent(vec, &vextent);
MPI_Type_vector(n, 1, stride, MPI_DOUBLE, &vec);
MPI_Type_commit(&vec);
MPI_Type_extent(vec, &vextent);
- if (vextent != (
(n - 1) * (MPI_Aint) stride + 1) * sizeof(double
)) {
+ if (vextent != (
MPI_Aint)(((n - 1) * stride + 1) * sizeof(double)
)) {
errs++;
printf("Vector extent is %ld, should be %ld\n",
(long) vextent, (long) (((n - 1) * stride + 1) * sizeof(double)));
errs++;
printf("Vector extent is %ld, should be %ld\n",
(long) vextent, (long) (((n - 1) * stride + 1) * sizeof(double)));