Update benchmarks to Swift 4 (#14623)

This commit is contained in:
Ben Cohen
2018-02-14 17:26:58 -08:00
committed by GitHub
parent 6c6f0d0d5f
commit 3b4eacc3a8
15 changed files with 51 additions and 63 deletions

View File

@@ -30,7 +30,7 @@ public func run_ArraySubscript(_ N: Int) {
var arrays = [[Int]](repeating: [], count: numArrays)
for i in 0..<numArrays {
for _ in 0..<numArrayElements {
arrays[i].append(Int(truncatingBitPattern: Random()))
arrays[i].append(Int(truncatingIfNeeded: Random()))
}
}