Multiple warning fixes dealing with casts.

Yes, I am using static_casts. Generally safer.
This commit is contained in:
Jason Felds
2011-03-14 02:09:58 -04:00
parent 1dfb1c6143
commit 650653b4d2
10 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ void ScrollBar::SetPercentage( float fCenterPercent, float fSizePercent )
{
wrap( fCenterPercent, 1.0f );
const int iBarContentHeight = m_sprMiddle->GetZoomedHeight();
const int iBarContentHeight = static_cast<int>(m_sprMiddle->GetZoomedHeight());
ASSERT( iBarContentHeight != 0 );
/* Set tick thumb */