Fix some more compiler warnings

refs #8175
This commit is contained in:
Gunnar Beutner 2015-01-12 14:19:20 +01:00
parent 1df13c792b
commit 9080ca2867
1 changed files with 2 additions and 2 deletions

View File

@ -299,12 +299,12 @@ mainloop:
double now = Utility::GetTime();
double timeDiff = lastLoop - now;
if (abs(timeDiff) > 15) {
if (std::fabs(timeDiff) > 15) {
/* We made a significant jump in time. */
Log(LogInformation, "Application")
<< "We jumped "
<< (timeDiff < 0 ? "forward" : "backward")
<< " in time: " << abs(timeDiff) << " seconds";
<< " in time: " << std::fabs(timeDiff) << " seconds";
Timer::AdjustTimers(-timeDiff);
}