Skip to content

Commit d224abf

Browse files
committed
---
yaml --- r: 30893 b: refs/heads/incoming c: 90f959a h: refs/heads/master i: 30891: f2e1f8e v: v3
1 parent 2f1982d commit d224abf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: c9fb1b19aab4f2cb1d447b1943159e462f6ffe2d
9+
refs/heads/incoming: 90f959aad4a98aaa50dc258b96afd3db9ed0b1ba
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/test/bench/graph500-bfs.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
238238
}
239239
}
240240

241-
let mut i = 0u;
241+
let mut i = 0;
242242
while par::any(colors, is_gray) {
243243
// Do the BFS.
244244
log(info, fmt!("PBFS iteration %?", i));
245-
i += 1u;
245+
i += 1;
246246
let old_len = colors.len();
247247

248248
let color = arc::ARC(colors);
@@ -264,7 +264,7 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
264264
let mut color = white;
265265

266266
do neighbors.each() |k| {
267-
if is_gray(colors[*k]) {
267+
if is_gray(&colors[*k]) {
268268
color = gray(*k);
269269
false
270270
}
@@ -370,11 +370,11 @@ fn validate(edges: ~[(node_id, node_id)],
370370
371371
let status = do par::alli(tree) |u, v| {
372372
let u = u as node_id;
373-
if v == -1i64 || u == root {
373+
if *v == -1i64 || u == root {
374374
true
375375
}
376376
else {
377-
edges.contains(&(u, v)) || edges.contains(&(v, u))
377+
edges.contains(&(u, *v)) || edges.contains(&(*v, u))
378378
}
379379
};
380380

0 commit comments

Comments
 (0)