mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -193,8 +193,10 @@ struct UTF8Test {
|
||||
let encoded: [UInt8]
|
||||
let loc: SourceLoc
|
||||
|
||||
init(_ scalars: [UInt32], _ encoded: [UInt8],
|
||||
file: String = __FILE__, line: UWord = __LINE__) {
|
||||
init(
|
||||
_ scalars: [UInt32], _ encoded: [UInt8],
|
||||
file: String = __FILE__, line: UInt = __LINE__
|
||||
) {
|
||||
self.scalars = scalars
|
||||
self.encoded = encoded
|
||||
self.loc = SourceLoc(file, line, comment: "test data")
|
||||
@@ -399,9 +401,11 @@ struct UTF16Test {
|
||||
let encoded: [UInt16]
|
||||
let loc: SourceLoc
|
||||
|
||||
init(_ scalarsHead: [UInt32], _ scalarsRepairedTail: [UInt32],
|
||||
_ encoded: [UInt16],
|
||||
file: String = __FILE__, line: UWord = __LINE__) {
|
||||
init(
|
||||
_ scalarsHead: [UInt32], _ scalarsRepairedTail: [UInt32],
|
||||
_ encoded: [UInt16],
|
||||
file: String = __FILE__, line: UInt = __LINE__
|
||||
) {
|
||||
self.scalarsHead = scalarsHead
|
||||
self.scalarsRepairedTail = scalarsRepairedTail
|
||||
self.encoded = encoded
|
||||
|
||||
Reference in New Issue
Block a user