Skip to content

Commit dcaddaf

Browse files
committed
Update tests
1 parent 584573a commit dcaddaf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • tests/benchmarks/out/unsafe

tests/benchmarks/out/unsafe/bfs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub unsafe fn BFS_0(graph: *const Graph, mut start_vertex: u32) -> *mut u32 {
6262
let mut Q: Queue = Queue {
6363
elems: Box::leak(
6464
(0..((*graph).V as u64))
65-
.map(|_| <u32>::default())
65+
.map(|_| 0_u32)
6666
.collect::<Box<[u32]>>(),
6767
)
6868
.as_mut_ptr(),
@@ -72,13 +72,13 @@ pub unsafe fn BFS_0(graph: *const Graph, mut start_vertex: u32) -> *mut u32 {
7272
};
7373
let mut visited: *mut bool = Box::leak(
7474
(0..((*graph).V as u64))
75-
.map(|_| <bool>::default())
75+
.map(|_| false)
7676
.collect::<Box<[bool]>>(),
7777
)
7878
.as_mut_ptr();
7979
let mut pred: *mut u32 = Box::leak(
8080
(0..((*graph).V as u64))
81-
.map(|_| <u32>::default())
81+
.map(|_| 0_u32)
8282
.collect::<Box<[u32]>>(),
8383
)
8484
.as_mut_ptr();

0 commit comments

Comments
 (0)