mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
benchmarks: Don't crash on overflow in IterateData
This commit is contained in:
@@ -29,6 +29,6 @@ public func run_IterateData(_ N: Int) {
|
||||
let data = generateData()
|
||||
|
||||
for _ in 0...10*N {
|
||||
_ = data.reduce(0, +)
|
||||
_ = data.reduce(0, &+)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user