Revert to the strange %i.
This commit is contained in:
@@ -100,23 +100,23 @@ void BPMDisplay::SetBPMRange( const DisplayBpms &bpms )
|
|||||||
|
|
||||||
if( !(bool)CYCLE )
|
if( !(bool)CYCLE )
|
||||||
{
|
{
|
||||||
long int MinBPM = INT_MAX;
|
int MinBPM = INT_MAX;
|
||||||
long int MaxBPM = INT_MIN;
|
int MaxBPM = INT_MIN;
|
||||||
for( unsigned i = 0; i < BPMS.size(); ++i )
|
for( unsigned i = 0; i < BPMS.size(); ++i )
|
||||||
{
|
{
|
||||||
MinBPM = min( MinBPM, lrintf(BPMS[i]) );
|
MinBPM = min( MinBPM, (int)lrintf(BPMS[i]) );
|
||||||
MaxBPM = max( MaxBPM, lrintf(BPMS[i]) );
|
MaxBPM = max( MaxBPM, (int)lrintf(BPMS[i]) );
|
||||||
}
|
}
|
||||||
if( MinBPM == MaxBPM )
|
if( MinBPM == MaxBPM )
|
||||||
{
|
{
|
||||||
if( MinBPM == -1 )
|
if( MinBPM == -1 )
|
||||||
SetText( "..." ); // random
|
SetText( "..." ); // random
|
||||||
else
|
else
|
||||||
SetText( ssprintf("%ld", MinBPM) );
|
SetText( ssprintf("%i", MinBPM) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetText( ssprintf("%ld%s%ld", MinBPM, SEPARATOR.GetValue().c_str(), MaxBPM) );
|
SetText( ssprintf("%i%s%i", MinBPM, SEPARATOR.GetValue().c_str(), MaxBPM) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user