From 6d4e2ce93b1cd12040d2a030869d95225a3093bf Mon Sep 17 00:00:00 2001 From: Victor Perron Date: Fri, 30 Nov 2012 22:58:03 +0100 Subject: [PATCH] Change NULL to 0 to keep compatibility with some cross-compiling GCC versions --- src/decoder.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoder.hpp b/src/decoder.hpp index 814c3197..4ed2eb31 100644 --- a/src/decoder.hpp +++ b/src/decoder.hpp @@ -149,7 +149,7 @@ namespace zmq bool stalled () { // Check whether there was decoding error. - if (unlikely (static_cast (this)->next == NULL)) + if (unlikely (!(static_cast (this)->next))) return false; while (!to_read) {