Make utility funs in core::int, core::uint, etc. not by-reference

Closes #3302
This commit is contained in:
Tim Chevalier
2012-08-30 12:54:50 -07:00
parent 638db28c47
commit 4128cc4cb4
23 changed files with 99 additions and 98 deletions

View File

@@ -568,8 +568,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};
}