From fdbbea2a13f45c6eb6e9ead20c6ac1a288bbf447 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 15 Sep 2008 16:42:13 +0000 Subject: Explicit cast from double to int using static_cast --- checks/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'checks/timer.cpp') 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(timer.events() / timer.seconds()); out << events_per_second << " " << timer.get_name() << " per second; "; -- cgit v1.2.3