diff --git a/src/decoder.hpp b/src/decoder.hpp index 3dc1b868..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 == 0)) + if (unlikely (!(static_cast (this)->next))) return false; while (!to_read) {