From f97316a1e6980141082c811d6c44ca820c309850 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 11 Dec 2023 18:01:29 -0500 Subject: [PATCH] TraversalClient: Resolve -Wsign-compare warning --- Source/Core/Common/TraversalClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/TraversalClient.cpp b/Source/Core/Common/TraversalClient.cpp index 3198144479..44b8390f90 100644 --- a/Source/Core/Common/TraversalClient.cpp +++ b/Source/Core/Common/TraversalClient.cpp @@ -373,7 +373,7 @@ void TraversalClient::HandleTraversalTest() waitCondition = 0; break; } - else if (rv < sizeof(packet) || raddr.host != m_ServerAddress.host || + else if (rv < int(sizeof(packet)) || raddr.host != m_ServerAddress.host || raddr.host != m_portAlt || packet.requestId != m_TestRequestId) { // irrelevant packet, ignore