compiler warning fixed

This commit is contained in:
Matej Sekoranja
2014-11-17 19:09:34 +01:00
parent c672259ec6
commit cf40786cf7

View File

@@ -3825,7 +3825,7 @@ namespace epics {
// TODO boost when a server (from address list) is started!!! IP vs address !!!
int ix = m_addressIndex % m_addresses->size();
m_addressIndex++;
if (m_addressIndex >= (m_addresses->size()*(STATIC_SEARCH_MAX_MULTIPLIER+1)))
if (m_addressIndex >= static_cast<int>(m_addresses->size()*(STATIC_SEARCH_MAX_MULTIPLIER+1)))
m_addressIndex = m_addresses->size()*STATIC_SEARCH_MAX_MULTIPLIER;
// NOTE: calls channelConnectFailed() on failure