From: Arnaud Giersch Date: Wed, 11 Dec 2019 21:20:41 +0000 (+0100) Subject: Fix parameter when calling MC_assert. X-Git-Tag: v3.25~288 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ed83853259080d2aaa948627d1b3f942eb5f8845 Fix parameter when calling MC_assert. A cast to (int) is wrong with e.g. (0.2) or (1UL<<32). --- diff --git a/include/smpi/mpi.h b/include/smpi/mpi.h index b2c6e2b24e..df033adf32 100644 --- a/include/smpi/mpi.h +++ b/include/smpi/mpi.h @@ -19,7 +19,7 @@ #if SIMGRID_HAVE_MC #undef assert -#define assert(x) MC_assert((int)(x)) +#define assert(x) MC_assert(!!(x)) #endif #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */