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
commit 2c6bf2d224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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