Skip to content

Commit 6768ca9

Browse files
committed
Fix type cast
1 parent 97040aa commit 6768ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl Socket {
9191
};
9292
let mut timeout = libc::timeval {
9393
tv_sec: secs,
94-
tv_usec: (dur.extra_nanos() / 1000) as libc::time_t,
94+
tv_usec: (dur.extra_nanos() / 1000) as libc::suseconds_t,
9595
};
9696
if timeout.tv_sec == 0 && timeout.tv_usec == 0 {
9797
timeout.tv_usec = 1;

0 commit comments

Comments
 (0)