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 f60d1b8 commit 4ac6034Copy full SHA for 4ac6034
src/common/Serialize.h
@@ -82,7 +82,7 @@ namespace Util {
82
{
83
if (size > std::numeric_limits<uint32_t>::max())
84
Sys::Drop("IPC: Size out of range in message");
85
- Write<uint32_t>(size);
+ Write<uint32_t>(static_cast<uint32_t>( size ));
86
}
87
template<typename T, typename Arg> void Write(Arg&& value)
88
@@ -249,7 +249,7 @@ namespace Util {
249
struct SerializeTraits<bool> {
250
static void Write(Writer& stream, bool value)
251
252
- stream.Write<uint8_t>(+value);
+ stream.Write<uint8_t>(static_cast<uint8_t>(value));
253
254
static bool Read(Reader& stream)
255
0 commit comments