mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
static_cast<int> to remove warning
This commit is contained in:
@@ -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<int>(tm.tm_gmtoff / 60);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user