Clear Linux warning in WiresX.cpp

This commit is contained in:
Andy CA6JAU 2018-11-05 14:39:27 -03:00
parent b84d4f3825
commit 93b3548374
3 changed files with 3 additions and 3 deletions

View File

@ -933,7 +933,7 @@ static bool refComparison(const CTGReg* r1, const CTGReg* r2)
CTGReg* CWiresX::findById(unsigned int id) CTGReg* CWiresX::findById(unsigned int id)
{ {
for (std::vector<CTGReg*>::const_iterator it = m_currTGList.cbegin(); it != m_currTGList.cend(); ++it) { for (std::vector<CTGReg*>::const_iterator it = m_currTGList.cbegin(); it != m_currTGList.cend(); ++it) {
if (id == atoi((*it)->m_id.c_str())) if (id == (unsigned int)atoi((*it)->m_id.c_str()))
return *it; return *it;
} }

View File

@ -884,7 +884,7 @@ static bool refComparison(const CTGReg* r1, const CTGReg* r2)
CTGReg* CWiresX::findById(unsigned int id) CTGReg* CWiresX::findById(unsigned int id)
{ {
for (std::vector<CTGReg*>::const_iterator it = m_currTGList.cbegin(); it != m_currTGList.cend(); ++it) { for (std::vector<CTGReg*>::const_iterator it = m_currTGList.cbegin(); it != m_currTGList.cend(); ++it) {
if (id == atoi((*it)->m_id.c_str())) if (id == (unsigned int)atoi((*it)->m_id.c_str()))
return *it; return *it;
} }

View File

@ -884,7 +884,7 @@ static bool refComparison(const CTGReg* r1, const CTGReg* r2)
CTGReg* CWiresX::findById(unsigned int id) CTGReg* CWiresX::findById(unsigned int id)
{ {
for (std::vector<CTGReg*>::const_iterator it = m_currTGList.cbegin(); it != m_currTGList.cend(); ++it) { for (std::vector<CTGReg*>::const_iterator it = m_currTGList.cbegin(); it != m_currTGList.cend(); ++it) {
if (id == atoi((*it)->m_id.c_str())) if (id == (unsigned int)atoi((*it)->m_id.c_str()))
return *it; return *it;
} }