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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user