diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-29 16:11:06 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-29 16:23:36 -0700 |
| commit | c0c8d3aa8fdd054372f91c997913b33146bdf9bd (patch) | |
| tree | 92ce54582b167358b3f09a0bc3861c643201c1aa /src/libcore/vec.rs | |
| parent | ee2ce036ccd53d8c19689d86cf8b3bd5cf37f40f (diff) | |
core: Demode int/uint mods
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 33199576c11..ee82971c70e 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1430,7 +1430,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 { @@ -1821,7 +1821,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 |
