From 4c13ce12cb9069126751046b8721dd3cd1bf9cfe Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 18 Apr 2014 07:34:33 -0400 Subject: [PATCH] Fix signed/unsigned compare in usermessage/clientmessage helpers. --- public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp | 2 +- public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp b/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp index 44b899bb..1c6d8c45 100644 --- a/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp +++ b/public/game/shared/dota/protobuf/dota_clientmessage_helpers.cpp @@ -59,7 +59,7 @@ const google::protobuf::Message *CDotaClientMessageHelpers::GetPrototype( const int CDotaClientMessageHelpers::GetIndex( const char *name ) const { - int idx = m_NameIndexMap.Find( name ); + unsigned int idx = m_NameIndexMap.Find( name ); if( idx != m_NameIndexMap.InvalidHandle() ) return m_NameIndexMap[idx]; diff --git a/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp b/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp index 44ce6a92..018c713d 100644 --- a/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp +++ b/public/game/shared/dota/protobuf/dota_usermessage_helpers.cpp @@ -136,7 +136,7 @@ const google::protobuf::Message *CDotaUsermessageHelpers::GetPrototype( const ch int CDotaUsermessageHelpers::GetIndex( const char *name ) const { - int idx = m_NameIndexMap.Find( name ); + unsigned int idx = m_NameIndexMap.Find( name ); if( idx != m_NameIndexMap.InvalidHandle() ) return m_NameIndexMap[idx];