Skip to content

Commit 8f641a3

Browse files
authored
Fix -Wold-style-cast compilation warning (#660)
1 parent 34a9b3a commit 8f641a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zmq_addon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ message_t encode(const Range &parts)
300300

301301
if (part_size < (std::numeric_limits<std::uint8_t>::max)()) {
302302
// small part
303-
*buf++ = (unsigned char) part_size;
303+
*buf++ = static_cast<unsigned char>(part_size);
304304
} else {
305305
// big part
306306
*buf++ = (std::numeric_limits<uint8_t>::max)();

0 commit comments

Comments
 (0)