We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886111a commit 92c39ccCopy full SHA for 92c39cc
src/common/Serialize.h
@@ -80,7 +80,7 @@ namespace Util {
80
{
81
if (size > std::numeric_limits<uint32_t>::max())
82
Sys::Drop("IPC: Size out of range in message");
83
- Write<uint32_t>(size);
+ Write<uint32_t>(static_cast<uint32_t>( size ));
84
}
85
template<typename T, typename Arg> void Write(Arg&& value)
86
@@ -247,7 +247,7 @@ namespace Util {
247
struct SerializeTraits<bool> {
248
static void Write(Writer& stream, bool value)
249
250
- stream.Write<uint8_t>(+value);
+ stream.Write<uint8_t>(static_cast<uint8_t>(value));
251
252
static bool Read(Reader& stream)
253
0 commit comments