mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Fix -Wtautological-overlap-compare in stun test
Fix the minimal check for an invalid IP returned. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -55,7 +55,7 @@ public:
|
||||
{
|
||||
if (c == '.')
|
||||
++dots;
|
||||
else if (c < '0' && c > '9')
|
||||
else if (c < '0' || c > '9')
|
||||
{
|
||||
TS_FAIL("StunClient::FindLocalIP did not return a valid IPV4 address: wrong character");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user