From 18c48492effb4ea45adf8790f6ee0b3030e5ab7c Mon Sep 17 00:00:00 2001 From: Chakakhan Date: Tue, 16 Aug 2011 02:01:11 +0000 Subject: [PATCH] Added cast to convert from unsigned to int This was SVN commit r10012. --- source/gui/CInput.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/gui/CInput.cpp b/source/gui/CInput.cpp index 5c93dce2a3..d26992235b 100644 --- a/source/gui/CInput.cpp +++ b/source/gui/CInput.cpp @@ -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