From eeeca0f46bf9e86c25456efbc37207e0800fb8e9 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 7 Nov 2014 20:32:17 +0200 Subject: [PATCH] static_cast to remove warning --- include/spdlog/details/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }