Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 9dab15565b633ae770efcca6d302546b6a86c7ab..31fcd4ca46549f5adc575766f2dce2ec90186da1 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -12643,9 +12643,10 @@ void HStatistics::Print() { |
double normalized_time = source_size_in_kb > 0 |
? total.InMillisecondsF() / source_size_in_kb |
: 0; |
- double normalized_size_in_kb = source_size_in_kb > 0 |
- ? total_size_ / 1024 / source_size_in_kb |
- : 0; |
+ double normalized_size_in_kb = |
+ source_size_in_kb > 0 |
+ ? static_cast<double>(total_size_) / 1024 / source_size_in_kb |
+ : 0; |
PrintF("%33s %8.3f ms %7.3f kB allocated\n", |
"Average per kB source", normalized_time, normalized_size_in_kb); |
} |