aboutsummaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.c b/peer.c
index cab6245..50df774 100644
--- a/peer.c
+++ b/peer.c
@@ -200,7 +200,7 @@ enet_peer_receive (ENetPeer * peer, enet_uint8 channelID)
incomingCommand = (ENetIncomingCommand *) enet_list_front (& channel -> incomingReliableCommands);
if (incomingCommand -> fragmentsRemaining > 0 ||
- incomingCommand -> reliableSequenceNumber != channel -> incomingReliableSequenceNumber + 1)
+ incomingCommand -> reliableSequenceNumber != (enet_uint16) (channel -> incomingReliableSequenceNumber + 1))
return NULL;
channel -> incomingReliableSequenceNumber = incomingCommand -> reliableSequenceNumber;