lap time round fix 27/90527/1
authorKamil Lipiszko <k.lipiszko@samsung.com>
Tue, 20 Sep 2016 14:54:42 +0000 (16:54 +0200)
committerKamil Lipiszko <k.lipiszko@samsung.com>
Tue, 20 Sep 2016 14:54:42 +0000 (16:54 +0200)
Change-Id: I70f9f4704ffb98c0153cfdc5499f78bfb00d88f6

clock/src/Presenter/StopWatchPresenter.cpp

index 46827f4..2c44648 100644 (file)
@@ -154,7 +154,7 @@ std::string StopWatchPresenter::GetTimeString(std::chrono::milliseconds time)
        auto ts = GetTimeStructure(time);
        std::stringstream stringStream;
 
-       ts.Msec = (unsigned)std::round(ts.Msec / 10);
+       ts.Msec = (unsigned)std::round((double)ts.Msec / 10);
 
        if (ts.Hour > 0)
                stringStream << (unsigned)(ts.Hour / 10) << ts.Hour % 10 << ":";