We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f3db2 commit fd90dfdCopy full SHA for fd90dfd
src/sys/time.rs
@@ -69,7 +69,10 @@ impl From<timespec> for TimeSpec {
69
70
impl From<Duration> for TimeSpec {
71
fn from(duration: Duration) -> Self {
72
- TimeSpec(timespec { tv_sec: duration.as_secs() as i64, tv_nsec: duration.subsec_nanos() as i64 })
+ TimeSpec(timespec {
73
+ tv_sec: duration.as_secs() as time_t,
74
+ tv_nsec: duration.subsec_nanos() as c_long
75
+ })
76
}
77
78
0 commit comments