mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 10:02:30 +00:00
fix(time): nsec should be explicitly cast to uint32
This commit is contained in:
parent
5cf50be7e2
commit
ee0277da1b
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ void BreakTime(Timestamp timestamp, TimeRec& date) {
|
|||
date.sec = static_cast<uint32_t>(systemTime.wSecond);
|
||||
date.wday = static_cast<uint32_t>(systemTime.wDayOfWeek);
|
||||
date.year = static_cast<uint32_t>(systemTime.wYear);
|
||||
date.nsec = nsec;
|
||||
date.nsec = static_cast<uint32_t>(nsec);
|
||||
|
||||
bool leapYear = (date.year % 400 == 0) || (date.year % 100 != 0 && ((systemTime.wYear & 3) == 0));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue