Commit c0ce5631 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix conversion from pointer to bool.

parent 6bc084cb
......@@ -195,8 +195,8 @@ static int instituteCompareP ( void * instituteptr1, void * instituteptr2 )
i1 = ( institute_t * ) instituteptr1;
i2 = ( institute_t * ) instituteptr2;
xassert ( i1 );
xassert ( i2 );
xassert(i1);
xassert(i2);
return instituteCompareKernel ( i1, i2 );
}
......
......@@ -46,7 +46,12 @@
#endif
void pcdiAssert ( bool, const char *, const char *, int );
#define xassert(arg) pcdiAssert ((arg), __FILE__, __func__, __LINE__ );
#define xassert(arg) do { \
if ((arg)) { \
} else { \
pcdiAssert(0, __FILE__, __func__, __LINE__ ); \
} \
} while(0)
#ifdef USE_MPI
#define xdebug(fmt, ...) \
......
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