summary refs log tree commit diff
path: root/src/libstd/sys/unix/thread.rs
diff options
context:
space:
mode:
authorMarco A L Barbosa <malbarbo@gmail.com>2017-10-19 15:49:59 -0200
committerMarco A L Barbosa <malbarbo@gmail.com>2017-10-20 13:18:16 -0200
commite57ee3d0bf8d8b11feccab49432d4c5e8fc3a3ca (patch)
treeaf1db29dc844adcecc14e0810f5ae1d4a19713ab /src/libstd/sys/unix/thread.rs
parentdbcd1bec6150a259fea16ddae6c5881b4b676217 (diff)
downloadrust-e57ee3d0bf8d8b11feccab49432d4c5e8fc3a3ca.tar.gz
rust-e57ee3d0bf8d8b11feccab49432d4c5e8fc3a3ca.zip
Fix some tests for linux gnux32
Diffstat (limited to 'src/libstd/sys/unix/thread.rs')
-rw-r--r--src/libstd/sys/unix/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs
index 6c4a3324296..cc889454ce9 100644
--- a/src/libstd/sys/unix/thread.rs
+++ b/src/libstd/sys/unix/thread.rs
@@ -149,7 +149,7 @@ impl Thread {
 
     pub fn sleep(dur: Duration) {
         let mut secs = dur.as_secs();
-        let mut nsecs = dur.subsec_nanos() as libc::c_long;
+        let mut nsecs = dur.subsec_nanos() as _;
 
         // If we're awoken with a signal then the return value will be -1 and
         // nanosleep will fill in `ts` with the remaining time.