Skip to content

Commit 74fe5a5

Browse files
committed
Fix #1426
1 parent 9d0a9d4 commit 74fe5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ inline void duration_to_sec_and_usec(const T &duration, U callback) {
15361536
auto usec = std::chrono::duration_cast<std::chrono::microseconds>(
15371537
duration - std::chrono::seconds(sec))
15381538
.count();
1539-
callback(sec, usec);
1539+
callback(static_cast<time_t>(sec), static_cast<time_t>(usec));
15401540
}
15411541

15421542
template <typename T>

0 commit comments

Comments
 (0)