From b61a040e2f15f310e62425d96e3129d5de0b3278 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Sat, 23 Jan 2010 01:05:22 +0000 Subject: [PATCH] Fix warning (when compiling with strict warnings). git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3505 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/uqm/netplay/packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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