mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-16 07:14:30 +01:00
Use static_cast<int>(...) instead C-style cast
This commit is contained in:
@@ -272,5 +272,5 @@ int AlarmLogParser::getTimezoneOffset()
|
||||
ptm->tm_isdst = -1;
|
||||
gmt = mktime(ptm);
|
||||
|
||||
return (int)difftime(rawtime, gmt);
|
||||
return static_cast<int>(difftime(rawtime, gmt));
|
||||
}
|
||||
Reference in New Issue
Block a user