Removed C-style casts

This commit is contained in:
Phil Nash
2014-07-09 07:35:34 +01:00
parent 08e5296720
commit a31f05fe83
5 changed files with 8 additions and 8 deletions

View File

@@ -324,7 +324,7 @@ namespace Catch {
}
void printTotals( Totals const& totals ) {
int cols = 1+(int)log10( (float)std::max( totals.testCases.total(), totals.assertions.total() ) );
int cols = 1+static_cast<int>( log10( static_cast<float>( (std::max)( totals.testCases.total(), totals.assertions.total() ) ) ) );
if( totals.testCases.total() == 0 ) {
stream << Colour( Colour::Warning ) << "No tests ran\n";
}