Skip to content

Commit 4ac6034

Browse files
Morel BérengerAntoine Fontaine
authored andcommitted
fix implicit cast warnings in a header
1 parent f60d1b8 commit 4ac6034

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
@@ -82,7 +82,7 @@ namespace Util {
8282
{
8383
if (size > std::numeric_limits<uint32_t>::max())
8484
Sys::Drop("IPC: Size out of range in message");
85-
Write<uint32_t>(size);
85+
Write<uint32_t>(static_cast<uint32_t>( size ));
8686
}
8787
template<typename T, typename Arg> void Write(Arg&& value)
8888
{
@@ -249,7 +249,7 @@ namespace Util {
249249
struct SerializeTraits<bool> {
250250
static void Write(Writer& stream, bool value)
251251
{
252-
stream.Write<uint8_t>(+value);
252+
stream.Write<uint8_t>(static_cast<uint8_t>(value));
253253
}
254254
static bool Read(Reader& stream)
255255
{

0 commit comments

Comments
 (0)