Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).
This commit is contained in:
@@ -45,7 +45,7 @@ void cSignEntity::SetLines(const AString & a_Line1, const AString & a_Line2, con
|
||||
|
||||
void cSignEntity::SetLine(int a_Index, const AString & a_Line)
|
||||
{
|
||||
if ((a_Index < 0) || (a_Index >= ARRAYCOUNT(m_Line)))
|
||||
if ((a_Index < 0) || (a_Index >= (int)ARRAYCOUNT(m_Line)))
|
||||
{
|
||||
LOGWARNING("%s: setting a non-existent line %d (value \"%s\"", __FUNCTION__, a_Index, a_Line.c_str());
|
||||
return;
|
||||
@@ -59,7 +59,7 @@ void cSignEntity::SetLine(int a_Index, const AString & a_Line)
|
||||
|
||||
AString cSignEntity::GetLine(int a_Index) const
|
||||
{
|
||||
if ((a_Index < 0) || (a_Index >= ARRAYCOUNT(m_Line)))
|
||||
if ((a_Index < 0) || (a_Index >= (int)ARRAYCOUNT(m_Line)))
|
||||
{
|
||||
LOGWARNING("%s: requesting a non-existent line %d", __FUNCTION__, a_Index);
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user