Commit e192ccc5 authored by Rob Latham's avatar Rob Latham Committed by Pavan Balaji
Browse files

datatype_size no longer needs to be an integer



MPIO_CHECK_COUNT_SIZE was designed to ensure "count*datatype_size" did
not overflow integers.  Well, I've done my best to relax that need
throughout MPICH, so the cast to unsigned is not needed.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@mcs.anl.gov>
parent 615d1acb
......@@ -48,7 +48,7 @@ if (count < 0) { \
}
#define MPIO_CHECK_COUNT_SIZE(fh, count, datatype_size, myname, error_code) \
if (count*datatype_size != (ADIO_Offset)(unsigned)count*(ADIO_Offset)(unsigned)datatype_size) { \
if (count*datatype_size != (ADIO_Offset)(unsigned)count*(ADIO_Offset)datatype_size) { \
error_code = MPIO_Err_create_code(MPI_SUCCESS, \
MPIR_ERR_RECOVERABLE, \
myname, __LINE__, \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment