Skip to content

Commit 01da1c4

Browse files
authored
Merge pull request #13189 from hppritcha/fix_cid_1646463
coverity: address cid 1646463
2 parents 32bfff1 + 3edf07a commit 01da1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpi/c/type_create_darray.c.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ PROTOTYPE ERROR_CLASS type_create_darray(INT size,
9393
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_ARG, FUNC_NAME);
9494
} else if( (MPI_DISTRIBUTE_DFLT_DARG != darg_array[i]) &&
9595
(MPI_DISTRIBUTE_BLOCK == distrib_array[i]) &&
96-
((MPI_Count)(darg_array[i] * psize_array[i]) < (MPI_Count)gsize_array[i]) ) {
96+
(((MPI_Count)darg_array[i] * (MPI_Count)psize_array[i]) < (MPI_Count)gsize_array[i]) ) {
9797
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_ARG, FUNC_NAME);
9898
} else if( 1 > psize_array[i] )
9999
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_ARG, FUNC_NAME);

0 commit comments

Comments
 (0)