Skip to content

Commit f3b2125

Browse files
committed
---
yaml --- r: 32955 b: refs/heads/dist-snap c: 90f959a h: refs/heads/master i: 32953: 6debd13 32951: 60bdf06 v: v3
1 parent 23e1f4b commit f3b2125

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
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: c9fb1b19aab4f2cb1d447b1943159e462f6ffe2d
10+
refs/heads/dist-snap: 90f959aad4a98aaa50dc258b96afd3db9ed0b1ba
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/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)