Fix -Wsign-compare warning
This commit is contained in:
+1
-1
@@ -1370,7 +1370,7 @@ enet_protocol_check_timeouts (ENetHost * host, ENetPeer * peer, ENetEvent * even
|
||||
|
||||
if (peer -> earliestTimeout != 0 &&
|
||||
(ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> earliestTimeout) >= peer -> timeoutMaximum ||
|
||||
((1 << (outgoingCommand -> sendAttempts - 1)) >= peer -> timeoutLimit &&
|
||||
((1U << (outgoingCommand -> sendAttempts - 1)) >= peer -> timeoutLimit &&
|
||||
ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> earliestTimeout) >= peer -> timeoutMinimum)))
|
||||
{
|
||||
enet_protocol_notify_disconnect (host, peer, event);
|
||||
|
||||
Reference in New Issue
Block a user