mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
fix: "Implicit conversion loses integer precision" warnings (#3960)
This commit is contained in:
@@ -98,7 +98,7 @@ private:
|
||||
auto const secs = duration_cast<seconds>(interval_);
|
||||
auto tv = timeval{};
|
||||
tv.tv_sec = secs.count();
|
||||
tv.tv_usec = duration_cast<microseconds>(interval_ - secs).count();
|
||||
tv.tv_usec = static_cast<suseconds_t>(duration_cast<microseconds>(interval_ - secs).count());
|
||||
evtimer_add(evtimer_, &tv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user