TraversalClient: Resolve -Wsign-compare warning

This commit is contained in:
Lioncash 2023-12-11 18:01:29 -05:00
parent 49f44c1334
commit f97316a1e6

View File

@ -373,7 +373,7 @@ void TraversalClient::HandleTraversalTest()
waitCondition = 0; waitCondition = 0;
break; 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) raddr.host != m_portAlt || packet.requestId != m_TestRequestId)
{ {
// irrelevant packet, ignore // irrelevant packet, ignore