Clean up warnings from gcc 4.6.3

This commit is contained in:
Andrew Johnson
2012-07-07 15:54:31 -05:00
parent 2559e1a3b7
commit 62727dcba6
17 changed files with 46 additions and 90 deletions

View File

@@ -60,9 +60,9 @@ void Test :: execute ()
for ( unsigned i = 0; i < 3; i++ ) {
double mVal = rand ();
mVal /= (RAND_MAX + 1);
mVal /= ((double) RAND_MAX + 1);
double fEVal = rand ();
fEVal /= (RAND_MAX + 1);
fEVal /= ((double) RAND_MAX + 1);
fEVal *= DBL_MAX_EXP - DBL_MIN_EXP;
fEVal += DBL_MIN_EXP;
int eVal = static_cast < int > ( fEVal + 0.5 );
@@ -72,7 +72,7 @@ void Test :: execute ()
_measure ();
}
_srcVal = rand ();
_srcVal /= (RAND_MAX + 1);
_srcVal /= ((double) RAND_MAX + 1);
_srcVal *= 10.0;
_srcVal -= 5.0;
for ( _prec = lowPrecision;