Skip to content

Commit dc840e0

Browse files
committed
---
yaml --- r: 24293 b: refs/heads/master c: 90f959a h: refs/heads/master i: 24291: e087075 v: v3
1 parent 5c9ca67 commit dc840e0

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c9fb1b19aab4f2cb1d447b1943159e462f6ffe2d
2+
refs/heads/master: 90f959aad4a98aaa50dc258b96afd3db9ed0b1ba
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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)