From: Gabriel Corona Date: Thu, 27 Aug 2015 12:53:09 +0000 (+0200) Subject: [smpi] Fix compilation X-Git-Tag: v3_12~300^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/195c6052b99f15378d4b6cfd34e7de9b159597ab [smpi] Fix compilation --- diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index 3e10693c7d..da028dea0b 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -348,7 +348,7 @@ void smpi_mpi_start(MPI_Request request) if (async_small_thres != 0 ||request->flags & RMA) xbt_mutex_acquire(mut); - if (async_small_thres == 0 && !request->flags & RMA) { + if (async_small_thres == 0 && !(request->flags & RMA)) { mailbox = smpi_process_mailbox(); } else if (request->flags & RMA || request->size < async_small_thres){ @@ -428,10 +428,10 @@ void smpi_mpi_start(MPI_Request request) xbt_mutex_t mut=smpi_process_remote_mailboxes_mutex(receiver); - if (async_small_thres != 0 ||request->flags & RMA) + if (async_small_thres != 0 || request->flags & RMA) xbt_mutex_acquire(mut); - if (!(async_small_thres != 0 ||request->flags & RMA)) { + if (!(async_small_thres != 0 || request->flags & RMA)) { mailbox = smpi_process_remote_mailbox(receiver); } else if (request->flags & RMA || request->size < async_small_thres) { // eager mode