mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-21 02:00:36 +01:00
Merge pull request #3355 from bluca/formatting
Problem: small formatting issue highlighted by clang
This commit is contained in:
commit
3154f3eab7
@ -115,8 +115,8 @@ int zmq::v2_decoder_t::size_ready (uint64_t msg_size_,
|
|||||||
|
|
||||||
shared_message_memory_allocator &allocator = get_allocator ();
|
shared_message_memory_allocator &allocator = get_allocator ();
|
||||||
if (unlikely (!_zero_copy
|
if (unlikely (!_zero_copy
|
||||||
|| msg_size_ >
|
|| msg_size_ > (size_t) (allocator.data () + allocator.size ()
|
||||||
(size_t)(allocator.data () + allocator.size () - read_pos_))) {
|
- read_pos_))) {
|
||||||
// a new message has started, but the size would exceed the pre-allocated arena
|
// 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
|
// 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_));
|
rc = _in_progress.init_size (static_cast<size_t> (msg_size_));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user