From e9fd5aae431add1da114beec8979f92c8040f444 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 9 Jan 2019 12:02:32 +0000 Subject: [PATCH] Problem: small formatting issue highlighted by clang Solution: fix it with make clang-format-diff --- src/v2_decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2_decoder.cpp b/src/v2_decoder.cpp index 5781d804..9e0256db 100644 --- a/src/v2_decoder.cpp +++ b/src/v2_decoder.cpp @@ -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 (msg_size_));