mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: don't use assert() in stdlib implementation
Swift SVN r18653
This commit is contained in:
@@ -210,7 +210,7 @@ extension ArrayBuffer {
|
||||
// Could be sped up, e.g. by using
|
||||
// enumerateObjectsAtIndexes:options:usingBlock:
|
||||
for i in subRange {
|
||||
assert(ns.objectAtIndex(i) is T,
|
||||
_precondition(ns.objectAtIndex(i) is T,
|
||||
"NSArray element failed to match the Swift Array Element type")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user