Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c0ce5631
Commit
c0ce5631
authored
Jul 25, 2012
by
Thomas Jahns
🤸
Browse files
Fix conversion from pointer to bool.
parent
6bc084cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/institution.c
View file @
c0ce5631
...
...
@@ -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
);
}
...
...
src/pio_util.h
View file @
c0ce5631
...
...
@@ -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, ...) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment