From 2121f1782fc0a2b325a692ceb58bf23929c33bcd Mon Sep 17 00:00:00 2001 From: Fenrir Date: Fri, 3 Feb 2017 22:26:11 -0700 Subject: [PATCH] use libc types in Instant impl --- ctr-std/src/sys/unix/time.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctr-std/src/sys/unix/time.rs b/ctr-std/src/sys/unix/time.rs index d28b1f0..e6409ce 100644 --- a/ctr-std/src/sys/unix/time.rs +++ b/ctr-std/src/sys/unix/time.rs @@ -138,8 +138,8 @@ mod inner { let ms = monotonic_ms(); let s = libc::timeval { - tv_sec: (ms / 1_000_000) as i32, - tv_usec: (ms % 1_000_000) as i32, + tv_sec: (ms / 1_000_000) as libc::time_t, + tv_usec: (ms % 1_000_000) as libc::c_long, }; return Instant::from(s) }