about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-02 16:51:50 -0700
committerbors <bors@rust-lang.org>2014-05-02 16:51:50 -0700
commite0d261e576817817bf3433deee6a1434cec47002 (patch)
treeb4fadad3eb542e939c54f5050495891fa7b9dd49 /src/libnative
parentb5d6b07370b665df6b54fa20e971e61041a233b0 (diff)
parent6c26cbb6026194a280fa0f33c794d4397ad426da (diff)
downloadrust-e0d261e576817817bf3433deee6a1434cec47002.tar.gz
rust-e0d261e576817817bf3433deee6a1434cec47002.zip
auto merge of #13579 : hirschenberger/rust/lint_unsigned_negate, r=alexcrichton
See #11273 and #13318
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/timer_win32.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libnative/io/timer_win32.rs b/src/libnative/io/timer_win32.rs
index 588ec367d81..15e6e62421a 100644
--- a/src/libnative/io/timer_win32.rs
+++ b/src/libnative/io/timer_win32.rs
@@ -137,7 +137,7 @@ impl rtio::RtioTimer for Timer {
 
         // there are 10^6 nanoseconds in a millisecond, and the parameter is in
         // 100ns intervals, so we multiply by 10^4.
-        let due = -(msecs * 10000) as libc::LARGE_INTEGER;
+        let due = -(msecs as i64 * 10000) as libc::LARGE_INTEGER;
         assert_eq!(unsafe {
             imp::SetWaitableTimer(self.obj, &due, 0, ptr::null(),
                                   ptr::mut_null(), 0)
@@ -151,7 +151,7 @@ impl rtio::RtioTimer for Timer {
         let (tx, rx) = channel();
 
         // see above for the calculation
-        let due = -(msecs * 10000) as libc::LARGE_INTEGER;
+        let due = -(msecs as i64 * 10000) as libc::LARGE_INTEGER;
         assert_eq!(unsafe {
             imp::SetWaitableTimer(self.obj, &due, 0, ptr::null(),
                                   ptr::mut_null(), 0)
@@ -167,7 +167,7 @@ impl rtio::RtioTimer for Timer {
         let (tx, rx) = channel();
 
         // see above for the calculation
-        let due = -(msecs * 10000) as libc::LARGE_INTEGER;
+        let due = -(msecs as i64 * 10000) as libc::LARGE_INTEGER;
         assert_eq!(unsafe {
             imp::SetWaitableTimer(self.obj, &due, msecs as libc::LONG,
                                   ptr::null(), ptr::mut_null(), 0)