commit | 398f64b5805246765b699839b439e18c0dfbf2ee | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Mar 26 18:05:48 2012 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon Mar 26 18:05:48 2012 -0700 |
tree | de3f86de82289b1734b12cdc7c4292f4aff16f55 | |
parent | ee0fa76b2e5d39ad36d1ff144b2d0270df81e606 [diff] [blame] |
Remove more lint, mostly C-style casts. Change-Id: Iaf1f23290e35ed48e5795fb20690953a9a834457
diff --git a/src/compiler.cc b/src/compiler.cc index 6cdb6ee..0eb4301 100644 --- a/src/compiler.cc +++ b/src/compiler.cc
@@ -54,7 +54,7 @@ } static double Percentage(size_t x, size_t y) { - return 100.0 * ((double)x) / ((double)(x + y)); + return 100.0 * (static_cast<double>(x)) / (static_cast<double>(x + y)); } static void DumpStat(size_t x, size_t y, const char* str) {