mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Fix #1426
This commit is contained in:
parent
9d0a9d4e23
commit
74fe5a5029
1 changed files with 1 additions and 1 deletions
|
@ -1536,7 +1536,7 @@ inline void duration_to_sec_and_usec(const T &duration, U callback) {
|
|||
auto usec = std::chrono::duration_cast<std::chrono::microseconds>(
|
||||
duration - std::chrono::seconds(sec))
|
||||
.count();
|
||||
callback(sec, usec);
|
||||
callback(static_cast<time_t>(sec), static_cast<time_t>(usec));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Reference in a new issue