diff --git a/sc2/src/uqm/netplay/packet.h b/sc2/src/uqm/netplay/packet.h index 61bb4c294..5cb36ff84 100644 --- a/sc2/src/uqm/netplay/packet.h +++ b/sc2/src/uqm/netplay/packet.h @@ -108,7 +108,7 @@ packetLength(const Packet *packet) { static inline PacketType packetType(const Packet *packet) { - return (PacketType) ntoh16(packet->header.type); + return (PacketType) (int) ntoh16(packet->header.type); } static inline bool