Skip to content

Commit 304095f

Browse files
committed
benchmarks: Don't crash on overflow in IterateData
1 parent 6b1210e commit 304095f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/single-source/IterateData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public func run_IterateData(_ N: Int) {
2929
let data = generateData()
3030

3131
for _ in 0...10*N {
32-
_ = data.reduce(0, +)
32+
_ = data.reduce(0, &+)
3333
}
3434
}

0 commit comments

Comments
 (0)