mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: remove Word and UWord
These types are leftovers from the early pre-1.0 times when Int and UInt were always 64-bit on all platforms. They serve no useful purpose today. Int and UInt are defined to be word-sized and should be used instead. rdar://18693488 Swift SVN r30564
This commit is contained in:
@@ -246,7 +246,7 @@ internal struct _UnmanagedAnyObjectArray {
|
||||
|
||||
/// Underlying pointer, typed as an integer to escape from reference
|
||||
/// counting.
|
||||
internal var value: UnsafeMutablePointer<Word>
|
||||
internal var value: UnsafeMutablePointer<Int>
|
||||
|
||||
internal init(_ up: UnsafeMutablePointer<AnyObject>) {
|
||||
self.value = UnsafeMutablePointer(up)
|
||||
@@ -257,7 +257,7 @@ internal struct _UnmanagedAnyObjectArray {
|
||||
return _reinterpretCastToAnyObject(value[i])
|
||||
}
|
||||
nonmutating set(newValue) {
|
||||
value[i] = unsafeBitCast(newValue, Word.self)
|
||||
value[i] = unsafeBitCast(newValue, Int.self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user