Silence compiler warnings on 32-bit platforms. Refs trac:3828
This commit was SVN r29374. The following Trac tickets were found above: Ticket 3828 --> https://svn.open-mpi.org/trac/ompi/ticket/3828
Этот коммит содержится в:
родитель
dfd3883416
Коммит
70878764d7
@ -59,8 +59,8 @@ int MPI_Type_get_extent_x(MPI_Datatype type, MPI_Count *lb, MPI_Count *extent)
|
||||
|
||||
rc = ompi_datatype_get_extent( type, &alb, &aextent );
|
||||
if (OMPI_SUCCESS == rc) {
|
||||
*lb = ((size_t) alb > MPI_COUNT_MAX) ? MPI_UNDEFINED : alb;
|
||||
*extent = ((size_t) aextent > MPI_COUNT_MAX) ? MPI_UNDEFINED : aextent;
|
||||
*lb = ((uint64_t) alb > MPI_COUNT_MAX) ? MPI_UNDEFINED : alb;
|
||||
*extent = ((uint64_t) aextent > MPI_COUNT_MAX) ? MPI_UNDEFINED : aextent;
|
||||
}
|
||||
|
||||
OMPI_ERRHANDLER_RETURN(rc, MPI_COMM_WORLD, rc, FUNC_NAME );
|
||||
|
@ -63,8 +63,8 @@ int MPI_Type_get_true_extent_x(MPI_Datatype datatype,
|
||||
|
||||
rc = ompi_datatype_get_true_extent( datatype, &atrue_lb, &atrue_extent );
|
||||
if (OMPI_SUCCESS == rc) {
|
||||
*true_lb = ((size_t) atrue_lb > MPI_COUNT_MAX) ? MPI_UNDEFINED : atrue_lb;
|
||||
*true_extent = ((size_t) atrue_extent > MPI_COUNT_MAX) ? MPI_UNDEFINED : atrue_extent;
|
||||
*true_lb = ((uint64_t) atrue_lb > MPI_COUNT_MAX) ? MPI_UNDEFINED : atrue_lb;
|
||||
*true_extent = ((uint64_t) atrue_extent > MPI_COUNT_MAX) ? MPI_UNDEFINED : atrue_extent;
|
||||
}
|
||||
|
||||
OMPI_ERRHANDLER_RETURN(rc, MPI_COMM_WORLD, rc, FUNC_NAME );
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user