diff options
| author | bors <bors@rust-lang.org> | 2014-05-02 16:51:50 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-02 16:51:50 -0700 |
| commit | e0d261e576817817bf3433deee6a1434cec47002 (patch) | |
| tree | b4fadad3eb542e939c54f5050495891fa7b9dd49 /src/libnative | |
| parent | b5d6b07370b665df6b54fa20e971e61041a233b0 (diff) | |
| parent | 6c26cbb6026194a280fa0f33c794d4397ad426da (diff) | |
| download | rust-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.rs | 6 |
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) |
