1
0
forked from 0ad/0ad

Avoid type warnings

This was SVN commit r1274.
This commit is contained in:
Ykkrosh 2004-10-23 19:24:55 +00:00
parent 96807dd6f3
commit 0c95417dec

View File

@ -79,10 +79,10 @@ int CInput::ManuallyHandleEvent(const SDL_Event* ev)
break; break;
if (m_iBufferPos == pCaption->Length()) if (m_iBufferPos == pCaption->Length())
*pCaption = pCaption->Left( pCaption->Length()-1 ); *pCaption = pCaption->Left( (long) pCaption->Length()-1);
else else
*pCaption = pCaption->Left( m_iBufferPos-1 ) + *pCaption = pCaption->Left( m_iBufferPos-1 ) +
pCaption->Right( pCaption->Length()-m_iBufferPos ); pCaption->Right( (long) pCaption->Length()-m_iBufferPos );
--m_iBufferPos; --m_iBufferPos;
break; break;
@ -93,7 +93,7 @@ int CInput::ManuallyHandleEvent(const SDL_Event* ev)
break; break;
*pCaption = pCaption->Left( m_iBufferPos ) + *pCaption = pCaption->Left( m_iBufferPos ) +
pCaption->Right( pCaption->Length()-(m_iBufferPos+1) ); pCaption->Right( (long) pCaption->Length()-(m_iBufferPos+1) );
break; break;
@ -102,7 +102,7 @@ int CInput::ManuallyHandleEvent(const SDL_Event* ev)
break; break;
case SDLK_END: case SDLK_END:
m_iBufferPos = pCaption->Length(); m_iBufferPos = (long) pCaption->Length();
break; break;
case SDLK_LEFT: case SDLK_LEFT:
@ -151,7 +151,7 @@ int CInput::ManuallyHandleEvent(const SDL_Event* ev)
*pCaption += cooked; *pCaption += cooked;
else else
*pCaption = pCaption->Left(m_iBufferPos) + CStrW(cooked) + *pCaption = pCaption->Left(m_iBufferPos) + CStrW(cooked) +
pCaption->Right(pCaption->Length()-m_iBufferPos); pCaption->Right((long) pCaption->Length()-m_iBufferPos);
++m_iBufferPos; ++m_iBufferPos;
break; break;
@ -296,8 +296,7 @@ void CInput::Draw()
glPopMatrix(); glPopMatrix();
} }
//glwprintf(L"%ls", caption.c_str()); glwprintf(L"%lc", caption[(int)i]);
glwprintf(L"%lc", caption[i]);
} }
if (m_iBufferPos == caption.Length()) if (m_iBufferPos == caption.Length())