1
1

More fixes similar to r12684 -- fix bad lvalues in assignments for the

case where sizeof(INTEGER) > sizeof(int).

This commit was SVN r12707.

The following SVN revision numbers were found above:
  r12684 --> open-mpi/ompi@e2c605f32a
Этот коммит содержится в:
Jeff Squyres 2006-11-30 16:41:56 +00:00
родитель 79bd8a842e
Коммит 384caeacf4
2 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -71,6 +71,9 @@ void mpi_testsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
MPI_Request *c_req;
MPI_Status *c_status;
int i;
#if OMPI_SIZEOF_FORTRAN_INTEGER != SIZEOF_INT
int int_c;
#endif
OMPI_SINGLE_NAME_DECL(outcount);
OMPI_ARRAY_NAME_DECL(array_of_indices);
@ -94,15 +97,19 @@ void mpi_testsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
OMPI_ARRAY_NAME_CONVERT(array_of_indices),
c_status));
#if OMPI_SIZEOF_FORTRAN_INTEGER != SIZEOF_INT
OMPI_SINGLE_INT_2_FINT(outcount);
OMPI_ARRAY_INT_2_FINT(array_of_indices, OMPI_FINT_2_INT(*incount));
int_c = OMPI_FINT_2_INT(*incount);
OMPI_ARRAY_INT_2_FINT(array_of_indices, int_c);
*incount = OMPI_INT_2_FINT(int_c);
#endif
if (MPI_SUCCESS == OMPI_FINT_2_INT(*ierr)) {
if (MPI_UNDEFINED != OMPI_FINT_2_INT(*outcount)) {
for (i = 0; i < OMPI_FINT_2_INT(*outcount); ++i) {
array_of_requests[OMPI_INT_2_FINT(array_of_indices[i])] =
c_req[OMPI_INT_2_FINT(array_of_indices[i])]->req_f_to_c_index;
++(OMPI_FINT_2_INT(array_of_indices[i]));
++array_of_indices[i];
}
}
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {

Просмотреть файл

@ -104,7 +104,7 @@ void mpi_waitsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
for (i = 0; i < OMPI_FINT_2_INT(*outcount); ++i) {
array_of_requests[OMPI_INT_2_FINT(array_of_indices[i])] =
c_req[OMPI_INT_2_FINT(array_of_indices[i])]->req_f_to_c_index;
++(OMPI_FINT_2_INT(array_of_indices[i]));
++array_of_indices[i];
}
}
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {