diff options
Diffstat (limited to 'src/encoder.cpp')
-rw-r--r-- | src/encoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoder.cpp b/src/encoder.cpp index 88e1dff..8f7b4b6 100644 --- a/src/encoder.cpp +++ b/src/encoder.cpp @@ -75,14 +75,14 @@ bool zmq::encoder_t::message_ready () // message size. In both cases 'flags' field follows. if (size < 255) { tmpbuf [0] = (unsigned char) size; - tmpbuf [1] = (in_progress.flags & ~ZMQ_MSG_SHARED); + tmpbuf [1] = (in_progress.flags & ZMQ_MSG_MORE); next_step (tmpbuf, 2, &encoder_t::size_ready, !(in_progress.flags & ZMQ_MSG_MORE)); } else { tmpbuf [0] = 0xff; put_uint64 (tmpbuf + 1, size); - tmpbuf [9] = (in_progress.flags & ~ZMQ_MSG_SHARED); + tmpbuf [9] = (in_progress.flags & ZMQ_MSG_MORE); next_step (tmpbuf, 10, &encoder_t::size_ready, !(in_progress.flags & ZMQ_MSG_MORE)); } |