mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
steamid.cpp: fix pointless comparison generating a warning
[5/61] Compiling C++ object 'src/25a6634@@GameNetworkingSockets@sta/common_steamid.cpp.o'.
../src/common/steamid.cpp: In member function ‘bool CSteamID::SetFromStringStrict(const char*, EUniverse)’:
../src/common/steamid.cpp:402:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
if ( unVal[0] >= k_EUniverseInvalid &&
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Steven Noonan <steven@valvesoftware.com>
This commit is contained in:
@@ -399,8 +399,7 @@ bool CSteamID::SetFromStringStrict( const char *pchSteamID, EUniverse eDefaultUn
|
||||
}
|
||||
if ( unIdx > 1 )
|
||||
{
|
||||
if ( unVal[0] >= k_EUniverseInvalid &&
|
||||
unVal[0] < k_EUniverseMax )
|
||||
if ( unVal[0] < k_EUniverseMax )
|
||||
{
|
||||
eUniverse = (EUniverse)unVal[0];
|
||||
if ( eUniverse == k_EUniverseInvalid )
|
||||
|
||||
Reference in New Issue
Block a user