libsyntax: uint types to usize
This commit is contained in:
@@ -130,10 +130,10 @@ pub fn matches_codepattern(a : &str, b : &str) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Given a string and an index, return the first uint >= idx
|
||||
/// Given a string and an index, return the first usize >= idx
|
||||
/// that is a non-ws-char or is outside of the legal range of
|
||||
/// the string.
|
||||
fn scan_for_non_ws_or_end(a : &str, idx: uint) -> uint {
|
||||
fn scan_for_non_ws_or_end(a : &str, idx: usize) -> usize {
|
||||
let mut i = idx;
|
||||
let len = a.len();
|
||||
while (i < len) && (is_whitespace(a.char_at(i))) {
|
||||
|
||||
Reference in New Issue
Block a user