mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-06-24 13:41:32 +02:00
Fix -Wold-style-cast compilation warning (#660)
This commit is contained in:
parent
34a9b3aa6a
commit
8f641a3018
@ -300,7 +300,7 @@ message_t encode(const Range &parts)
|
||||
|
||||
if (part_size < (std::numeric_limits<std::uint8_t>::max)()) {
|
||||
// small part
|
||||
*buf++ = (unsigned char) part_size;
|
||||
*buf++ = static_cast<unsigned char>(part_size);
|
||||
} else {
|
||||
// big part
|
||||
*buf++ = (std::numeric_limits<uint8_t>::max)();
|
||||
|
Loading…
x
Reference in New Issue
Block a user