mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-06-25 06:01:33 +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)()) {
|
if (part_size < (std::numeric_limits<std::uint8_t>::max)()) {
|
||||||
// small part
|
// small part
|
||||||
*buf++ = (unsigned char) part_size;
|
*buf++ = static_cast<unsigned char>(part_size);
|
||||||
} else {
|
} else {
|
||||||
// big part
|
// big part
|
||||||
*buf++ = (std::numeric_limits<uint8_t>::max)();
|
*buf++ = (std::numeric_limits<uint8_t>::max)();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user