Skip to content

Commit

Permalink
Merge pull request #3355 from bluca/formatting
Browse files Browse the repository at this point in the history
Problem: small formatting issue highlighted by clang
  • Loading branch information
somdoron authored Jan 9, 2019
2 parents 4ca3d43 + e9fd5aa commit 3154f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ int zmq::v2_decoder_t::size_ready (uint64_t msg_size_,

shared_message_memory_allocator &allocator = get_allocator ();
if (unlikely (!_zero_copy
|| msg_size_ >
(size_t)(allocator.data () + allocator.size () - read_pos_))) {
|| msg_size_ > (size_t) (allocator.data () + allocator.size ()
- read_pos_))) {
// a new message has started, but the size would exceed the pre-allocated arena
// this happens every time when a message does not fit completely into the buffer
rc = _in_progress.init_size (static_cast<size_t> (msg_size_));
Expand Down

0 comments on commit 3154f3e

Please sign in to comment.