Fix various casting warnings

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1471 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-08-23 03:47:03 +00:00
parent 09a1ca505f
commit 82968f9cba
5 changed files with 22 additions and 12 deletions

View File

@@ -118,13 +118,13 @@ public:
{
if( m_controllerConnection != NULL )
{
const float v = minValue<T>() +
const T v = minValue<T>() +
castValue<T>( m_range *
m_controllerConnection->currentValue(
_frameOffset ) );
if( m_step == 1 )
{
return( roundf( v ) );
return( castValue<T>( roundf( v ) ) );
}
return( v );
}