From ca650a5eb20a103dd269822a8ad8c008b57bfc08 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 6 May 2012 10:29:05 +0700 Subject: [PATCH] Use fabs() instead of abs() for double. Again thanks to fred. --- src/User.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/User.cpp b/src/User.cpp index 18ebef8a..7f030c90 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -15,6 +15,7 @@ #include #include #include +#include class CUserTimer : public CCron { public: @@ -223,7 +224,7 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) { SetTimezone(sValue); } if (pConfig->FindStringEntry("timezoneoffset", sValue)) { - if (abs(sValue.ToDouble()) > 0.1) { + if (fabs(sValue.ToDouble()) > 0.1) { CUtils::PrintError("WARNING: TimezoneOffset has been deprecated, now you can set your timezone by name"); } }