Skip to content

Commit 92c39cc

Browse files
Morel BérengerVReaperV
authored andcommitted
fix implicit cast warnings in a header
1 parent 886111a commit 92c39cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/Serialize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace Util {
8080
{
8181
if (size > std::numeric_limits<uint32_t>::max())
8282
Sys::Drop("IPC: Size out of range in message");
83-
Write<uint32_t>(size);
83+
Write<uint32_t>(static_cast<uint32_t>( size ));
8484
}
8585
template<typename T, typename Arg> void Write(Arg&& value)
8686
{
@@ -247,7 +247,7 @@ namespace Util {
247247
struct SerializeTraits<bool> {
248248
static void Write(Writer& stream, bool value)
249249
{
250-
stream.Write<uint8_t>(+value);
250+
stream.Write<uint8_t>(static_cast<uint8_t>(value));
251251
}
252252
static bool Read(Reader& stream)
253253
{

0 commit comments

Comments
 (0)