Commit eeeca0f4 authored by gabime's avatar gabime

static_cast<int> to remove warning

parent 2ac49b90
...@@ -141,7 +141,7 @@ inline int utc_minutes_offset(const std::tm& tm = localtime()) ...@@ -141,7 +141,7 @@ inline int utc_minutes_offset(const std::tm& tm = localtime())
return -1; return -1;
return -1 * (tzinfo.Bias + tzinfo.DaylightBias); return -1 * (tzinfo.Bias + tzinfo.DaylightBias);
#else #else
return tm.tm_gmtoff / 60; return static_cast<int>(tm.tm_gmtoff / 60);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment