diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-01 20:39:26 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-02 15:56:31 -0700 |
| commit | 9a259f4303cd6550a38ccd12b07ae14c1e21a263 (patch) | |
| tree | 07ce928ee77fea3d2b0a1d0bbfe021038bd0d708 /src/libnative | |
| parent | 46abacfdfebf3978b5bf39673d0b751636dd2257 (diff) | |
| download | rust-9a259f4303cd6550a38ccd12b07ae14c1e21a263.tar.gz rust-9a259f4303cd6550a38ccd12b07ae14c1e21a263.zip | |
Fix fallout of requiring uint indices
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/timer_other.rs | 4 | ||||
| -rw-r--r-- | src/libnative/io/timer_win32.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libnative/io/timer_other.rs b/src/libnative/io/timer_other.rs index ea237944bad..7979075aa02 100644 --- a/src/libnative/io/timer_other.rs +++ b/src/libnative/io/timer_other.rs @@ -296,7 +296,7 @@ mod imp { } pub fn fd_set(set: &mut fd_set, fd: i32) { - set.fds_bits[fd / 32] |= 1 << (fd % 32); + set.fds_bits[(fd / 32) as uint] |= 1 << (fd % 32); } extern { @@ -323,7 +323,7 @@ mod imp { } pub fn fd_set(set: &mut fd_set, fd: i32) { - set.fds_bits[fd / 64] |= (1 << (fd % 64)) as u64; + set.fds_bits[(fd / 64) as uint] |= (1 << (fd % 64)) as u64; } extern { diff --git a/src/libnative/io/timer_win32.rs b/src/libnative/io/timer_win32.rs index a342afa6854..3e420e45448 100644 --- a/src/libnative/io/timer_win32.rs +++ b/src/libnative/io/timer_win32.rs @@ -78,7 +78,7 @@ fn helper(input: libc::HANDLE, messages: Receiver<Req>) { } } else { let remove = { - match &chans[idx - 1] { + match &chans[idx as uint - 1] { &(ref c, oneshot) => !c.try_send(()) || oneshot } }; |
