diff --git a/zmq_addon.hpp b/zmq_addon.hpp index d92a56d..c6b4462 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -300,7 +300,7 @@ message_t encode(const Range &parts) if (part_size < (std::numeric_limits::max)()) { // small part - *buf++ = (unsigned char) part_size; + *buf++ = static_cast(part_size); } else { // big part *buf++ = (std::numeric_limits::max)();