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/libsyntax | |
| parent | ee2ce036ccd53d8c19689d86cf8b3bd5cf37f40f (diff) | |
| download | rust-c0c8d3aa8fdd054372f91c997913b33146bdf9bd.tar.gz rust-c0c8d3aa8fdd054372f91c997913b33146bdf9bd.zip | |
core: Demode int/uint mods
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 79df0767ca5..3481b6c93c2 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -563,8 +563,8 @@ fn compute_id_range(visit_ids_fn: fn(fn@(node_id))) -> id_range { let min = @mut int::max_value; let max = @mut int::min_value; do visit_ids_fn |id| { - *min = int::min(*min, id); - *max = int::max(*max, id + 1); + *min = int::min(min, &id); + *max = int::max(max, &(id + 1)); } return {min:*min, max:*max}; } diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 7b18ca532e0..b4c9eb6f69e 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -182,7 +182,7 @@ fn trim_whitespace_prefix_and_push_line(&lines: ~[~str], s: ~str, col: uint) unsafe { let mut s1; let len = str::len(s); - if all_whitespace(s, 0u, uint::min(len, col)) { + if all_whitespace(s, 0u, uint::min(&len, &col)) { if col < len { s1 = str::slice(s, col, len); } else { s1 = ~""; } |
