mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Rename [_]elementStorage=>[_]baseAddress
Swift SVN r20342
This commit is contained in:
@@ -59,7 +59,7 @@ class _NSSwiftArray : HeapBufferStorageBase, _CocoaArrayType {
|
||||
|
||||
if _fastPath(buffer.value.elementTypeIsBridgedVerbatim) {
|
||||
dst.initializeFrom(
|
||||
UnsafeMutablePointer(buffer.elementStorage + range.location),
|
||||
UnsafeMutablePointer(buffer.baseAddress + range.location),
|
||||
count: range.length)
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ class _NSSwiftArray : HeapBufferStorageBase, _CocoaArrayType {
|
||||
return 0
|
||||
}
|
||||
enumerationState.mutationsPtr = _fastEnumerationStorageMutationsPtr
|
||||
enumerationState.itemsPtr = reinterpretCast(buffer.elementStorage)
|
||||
enumerationState.itemsPtr = reinterpretCast(buffer.baseAddress)
|
||||
enumerationState.state = 1
|
||||
state.memory = enumerationState
|
||||
return buffer.value.count
|
||||
|
||||
Reference in New Issue
Block a user