We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a6b22 commit e8b15caCopy full SHA for e8b15ca
stdlib/public/core/SwiftNativeNSArray.swift
@@ -171,7 +171,7 @@ extension _SwiftNativeNSArrayWithContiguousStorage : _NSArrayCore {
171
internal override func withUnsafeBufferOfObjects<R>(
172
_ body: (UnsafeBufferPointer<AnyObject>) throws -> R
173
) rethrows -> R {
174
- repeat {
+ while true {
175
var buffer: UnsafeBufferPointer<AnyObject>
176
177
// If we've already got a buffer of bridged objects, just use it
@@ -206,7 +206,6 @@ extension _SwiftNativeNSArrayWithContiguousStorage : _NSArrayCore {
206
defer { _fixLifetime(self) }
207
return try body(buffer)
208
}
209
- while true
210
211
212
/// Returns the number of elements in the array.
0 commit comments