replace arbitrarilyy "big" initialisers with those from <limits.h>

This commit is contained in:
Ted Percival
2005-03-25 12:37:17 +00:00
parent 151b70ab27
commit 476bc01a9d
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -9,6 +9,8 @@
#include "ActorUtil.h"
#include "CommonMetrics.h"
#include <limits.h>
BPMDisplay::BPMDisplay()
{
m_fBPMFrom = m_fBPMTo = 0;
@@ -101,8 +103,8 @@ void BPMDisplay::SetBPMRange( const DisplayBpms &bpms )
if( !(bool)CYCLE )
{
int MinBPM=99999999;
int MaxBPM=-99999999;
int MinBPM = INT_MAX;
int MaxBPM = INT_MIN;
for( unsigned i = 0; i < BPMS.size(); ++i )
{
MinBPM = min( MinBPM, (int) roundf(BPMS[i]) );