diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-09-28 18:26:21 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-09-28 18:26:36 -0700 |
| commit | f311bb38cd24a8c0f730ae104b6bdea8fb2880c5 (patch) | |
| tree | 6fe738378f92b34c5bddb50288f060ca78817510 /src/test/bench | |
| parent | 84b058306472810edb4bc215cea621f1890b8b02 (diff) | |
| download | rust-f311bb38cd24a8c0f730ae104b6bdea8fb2880c5.tar.gz rust-f311bb38cd24a8c0f730ae104b6bdea8fb2880c5.zip | |
Fix benchmarks.
Diffstat (limited to 'src/test/bench')
| -rw-r--r-- | src/test/bench/graph500-bfs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bench/graph500-bfs.rs b/src/test/bench/graph500-bfs.rs index 27e5c696e59..d6a62363280 100644 --- a/src/test/bench/graph500-bfs.rs +++ b/src/test/bench/graph500-bfs.rs @@ -231,8 +231,8 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result { }; #[inline(always)] - fn is_gray(c: color) -> bool { - match c { + fn is_gray(c: &color) -> bool { + match *c { gray(_) => { true } _ => { false } } @@ -282,7 +282,7 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result { // Convert the results. do par::map(colors) |c| { - match c { + match *c { white => { -1i64 } black(parent) => { parent } _ => { fail ~"Found remaining gray nodes in BFS" } |
