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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user