diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-30 12:54:50 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-31 16:21:47 -0700 |
| commit | 4128cc4cb44acb415be3cfdfa008fd6c95ceee74 (patch) | |
| tree | 321c8c7ed1c28247377bf4122365c047d69f891f /src/libcore/vec.rs | |
| parent | 638db28c472c1edadc3c37f900df28f14cca7665 (diff) | |
Make utility funs in core::int, core::uint, etc. not by-reference
Closes #3302
Diffstat (limited to 'src/libcore/vec.rs')
| -rw-r--r-- | src/libcore/vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 984092e9a58..2e93788e9ac 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1427,7 +1427,7 @@ impl<T: Eq> @[T]: Eq { pure fn lt<T: Ord>(a: &[T], b: &[T]) -> bool { let (a_len, b_len) = (a.len(), b.len()); - let mut end = uint::min(&a_len, &b_len); + let mut end = uint::min(a_len, b_len); let mut i = 0; while i < end { @@ -1841,7 +1841,7 @@ mod u8 { pure fn cmp(a: &~[u8], b: &~[u8]) -> int { let a_len = len(*a); let b_len = len(*b); - let n = uint::min(&a_len, &b_len) as libc::size_t; + let n = uint::min(a_len, b_len) as libc::size_t; let r = unsafe { libc::memcmp(unsafe::to_ptr(*a) as *libc::c_void, unsafe::to_ptr(*b) as *libc::c_void, n) as int |
