forked from 0ad/0ad
Added cast to convert from unsigned to int
This was SVN commit r10012.
This commit is contained in:
parent
0f0ac2bcd5
commit
18c48492ef
@ -795,11 +795,9 @@ void CInput::HandleMessage(SGUIMessage &Message)
|
||||
|
||||
m_iBufferPos = m_iBufferPos_Tail = GetMouseHoveringTextPosition();
|
||||
|
||||
|
||||
if (m_iBufferPos >= pCaption->length())
|
||||
if (m_iBufferPos >= (int)pCaption->length())
|
||||
m_iBufferPos = m_iBufferPos_Tail = pCaption->length() - 1;
|
||||
|
||||
|
||||
// See if we are clicking over whitespace
|
||||
if (iswspace((*pCaption)[m_iBufferPos]))
|
||||
{
|
||||
@ -840,7 +838,7 @@ void CInput::HandleMessage(SGUIMessage &Message)
|
||||
break;
|
||||
}
|
||||
|
||||
if (m_iBufferPos_Tail == pCaption->length())
|
||||
if (m_iBufferPos_Tail == (int)pCaption->length())
|
||||
break;
|
||||
|
||||
// now go to the right until we hit whitespace or punctuation
|
||||
@ -859,7 +857,7 @@ void CInput::HandleMessage(SGUIMessage &Message)
|
||||
break;
|
||||
}
|
||||
|
||||
if (m_iBufferPos_Tail == pCaption->length())
|
||||
if (m_iBufferPos_Tail == (int)pCaption->length())
|
||||
break;
|
||||
|
||||
// Don't include the leading whitespace
|
||||
|
Loading…
Reference in New Issue
Block a user