Merge pull request #12394 from lioncash/compare

General: Resolve -Wsign-compare warnings
This commit is contained in:
Admiral H. Curtiss
2023-12-12 03:43:12 +01:00
committed by GitHub
6 changed files with 9 additions and 8 deletions

View File

@ -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