diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 8eab7b85..cc995cd4 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -141,7 +141,7 @@ inline int utc_minutes_offset(const std::tm& tm = localtime()) return -1; return -1 * (tzinfo.Bias + tzinfo.DaylightBias); #else - return tm.tm_gmtoff / 60; + return static_cast(tm.tm_gmtoff / 60); #endif }