diff --git a/src/SFML/Network/Packet.cpp b/src/SFML/Network/Packet.cpp index 35328f745..31fe259fc 100644 --- a/src/SFML/Network/Packet.cpp +++ b/src/SFML/Network/Packet.cpp @@ -438,14 +438,14 @@ Packet& Packet::operator <<(Int64 data) // to network byte order (big endian) manually Uint8 toWrite[] = { - (data >> 56) & 0xFF, - (data >> 48) & 0xFF, - (data >> 40) & 0xFF, - (data >> 32) & 0xFF, - (data >> 24) & 0xFF, - (data >> 16) & 0xFF, - (data >> 8) & 0xFF, - (data ) & 0xFF + static_cast((data >> 56) & 0xFF), + static_cast((data >> 48) & 0xFF), + static_cast((data >> 40) & 0xFF), + static_cast((data >> 32) & 0xFF), + static_cast((data >> 24) & 0xFF), + static_cast((data >> 16) & 0xFF), + static_cast((data >> 8) & 0xFF), + static_cast((data ) & 0xFF) }; append(&toWrite, sizeof(toWrite)); return *this; @@ -459,14 +459,14 @@ Packet& Packet::operator <<(Uint64 data) // to network byte order (big endian) manually Uint8 toWrite[] = { - (data >> 56) & 0xFF, - (data >> 48) & 0xFF, - (data >> 40) & 0xFF, - (data >> 32) & 0xFF, - (data >> 24) & 0xFF, - (data >> 16) & 0xFF, - (data >> 8) & 0xFF, - (data ) & 0xFF + static_cast((data >> 56) & 0xFF), + static_cast((data >> 48) & 0xFF), + static_cast((data >> 40) & 0xFF), + static_cast((data >> 32) & 0xFF), + static_cast((data >> 24) & 0xFF), + static_cast((data >> 16) & 0xFF), + static_cast((data >> 8) & 0xFF), + static_cast((data ) & 0xFF) }; append(&toWrite, sizeof(toWrite)); return *this;