aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/enet/enet.h8
-rw-r--r--peer.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h
index 72e36c8..03a8f29 100644
--- a/include/enet/enet.h
+++ b/include/enet/enet.h
@@ -188,10 +188,10 @@ enum
typedef struct _ENetChannel
{
- enet_uint32 outgoingReliableSequenceNumber;
- enet_uint32 outgoingUnreliableSequenceNumber;
- enet_uint32 incomingReliableSequenceNumber;
- enet_uint32 incomingUnreliableSequenceNumber;
+ enet_uint16 outgoingReliableSequenceNumber;
+ enet_uint16 outgoingUnreliableSequenceNumber;
+ enet_uint16 incomingReliableSequenceNumber;
+ enet_uint16 incomingUnreliableSequenceNumber;
ENetList incomingReliableCommands;
ENetList incomingUnreliableCommands;
} ENetChannel;
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;