diff options
author | lloyd <[email protected]> | 2008-09-15 16:42:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-15 16:42:13 +0000 |
commit | fdbbea2a13f45c6eb6e9ead20c6ac1a288bbf447 (patch) | |
tree | e140454a16942aa1f2329281c66051e6955cbdfc | |
parent | b6ccda1e41bf86247b21436f7e490a2395bfc65c (diff) |
Explicit cast from double to int using static_cast
-rw-r--r-- | checks/timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checks/timer.cpp b/checks/timer.cpp index bbb893d3e..a5225f23b 100644 --- a/checks/timer.cpp +++ b/checks/timer.cpp @@ -33,7 +33,7 @@ std::ostream& operator<<(std::ostream& out, Timer& timer) { //out << timer.value() << " "; - int events_per_second = timer.events() / timer.seconds(); + int events_per_second = static_cast<int>(timer.events() / timer.seconds()); out << events_per_second << " " << timer.get_name() << " per second; "; |