mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Use parenthesis for alloc_assert macro
This commit is contained in:
parent
ce6d48c578
commit
f049edbf12
@ -172,7 +172,7 @@ int wsa_error_to_errno (int errcode_);
|
||||
// Provides convenient way to check whether memory allocation have succeeded.
|
||||
#define alloc_assert(x) \
|
||||
do { \
|
||||
if (unlikely (!x)) { \
|
||||
if (unlikely (!(x))) { \
|
||||
fprintf (stderr, "FATAL ERROR: OUT OF MEMORY (%s:%d)\n", __FILE__, \
|
||||
__LINE__); \
|
||||
fflush (stderr); \
|
||||
|
Loading…
Reference in New Issue
Block a user