From 244c634bf8cb35a6b4c7cf4a77ae7e715bdbfcc7 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 24 May 2025 20:26:57 +0200 Subject: [PATCH] Fix -Wold-style-cast compilation warning --- zmq_addon.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmq_addon.hpp b/zmq_addon.hpp index d92a56da..c6b4462c 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)();