diff options
| author | bors <bors@rust-lang.org> | 2015-01-12 22:56:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-12 22:56:20 +0000 |
| commit | 3d0d9bb6fbdf6ead9396f0874cf38f3ef7c9be5c (patch) | |
| tree | 9994c5b80534154e0130716d304d9185e7ae3481 /src/libstd/io | |
| parent | 3a44a19af29585c02e81e22ea7665f829ae0590a (diff) | |
| parent | 8b6cda3ce681d4d95c3097d12ed754975b4a07f6 (diff) | |
| download | rust-3d0d9bb6fbdf6ead9396f0874cf38f3ef7c9be5c.tar.gz rust-3d0d9bb6fbdf6ead9396f0874cf38f3ef7c9be5c.zip | |
auto merge of #20896 : sfackler/rust/atomic-rename, r=alexcrichton
Change any use of AtomicInt to AtomicIsize and AtomicUint to AtomicUsize Closes #20893 [breaking-change]
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/test.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/io/test.rs b/src/libstd/io/test.rs index 67c14dc2dc1..6de466eb20b 100644 --- a/src/libstd/io/test.rs +++ b/src/libstd/io/test.rs @@ -15,18 +15,18 @@ use prelude::v1::*; use libc; use os; use std::io::net::ip::*; -use sync::atomic::{AtomicUint, ATOMIC_UINT_INIT, Ordering}; +use sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering}; /// Get a port number, starting at 9600, for use in tests pub fn next_test_port() -> u16 { - static NEXT_OFFSET: AtomicUint = ATOMIC_UINT_INIT; + static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT; base_port() + NEXT_OFFSET.fetch_add(1, Ordering::Relaxed) as u16 } // iOS has a pretty long tmpdir path which causes pipe creation // to like: invalid argument: path must be smaller than SUN_LEN fn next_test_unix_socket() -> String { - static COUNT: AtomicUint = ATOMIC_UINT_INIT; + static COUNT: AtomicUsize = ATOMIC_USIZE_INIT; // base port and pid are an attempt to be unique between multiple // test-runners of different configurations running on one // buildbot, the count is to be unique within this executable. |
