From c2a98f515d01fe92f2b9df352c978ed7433b6b7c Mon Sep 17 00:00:00 2001 From: Acretock Date: Wed, 8 Dec 2021 17:31:24 +0500 Subject: [PATCH] c style cast -> static_cast --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index a7cd37f7..fe9aa26f 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -305,7 +305,7 @@ SPDLOG_INLINE int utc_minutes_offset(const std::tm &tm) ((local_year / 100 >> 2) - (gmt_year / 100 >> 2)) // + difference in years * 365 */ - + (long int)(local_year - gmt_year) * 365); + + static_cast(local_year - gmt_year) * 365); long int hours = (24 * days) + (localtm.tm_hour - gmtm.tm_hour); long int mins = (60 * hours) + (localtm.tm_min - gmtm.tm_min);