From 9e1cfe280aa2ae1aab9f5750ac5974d42ad9e480 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 25 May 2024 17:07:46 -0500 Subject: [PATCH] Fix -Wsign-compare warning --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index 9475e2d..594049e 100644 --- a/protocol.c +++ b/protocol.c @@ -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);