Change NULL to 0 to keep compatibility with some cross-compiling GCC

versions
This commit is contained in:
Victor Perron 2012-11-30 22:58:03 +01:00
parent 7541e38205
commit 6d4e2ce93b

View File

@ -149,7 +149,7 @@ namespace zmq
bool stalled ()
{
// Check whether there was decoding error.
if (unlikely (static_cast <T*> (this)->next == NULL))
if (unlikely (!(static_cast <T*> (this)->next)))
return false;
while (!to_read) {