mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Unsafe[Mutable]Pointer.memory => .pointee
This commit is contained in:
committed by
Max Moiseev
parent
f1dbe205a3
commit
3d0ad16094
@@ -911,8 +911,8 @@ extension UTF16 {
|
||||
}
|
||||
else {
|
||||
for i in 0..<count {
|
||||
let u16 = T._toUTF16CodeUnit((source + i).memory)
|
||||
(destination + i).memory = U._fromUTF16CodeUnit(u16)
|
||||
let u16 = T._toUTF16CodeUnit((source + i).pointee)
|
||||
(destination + i).pointee = U._fromUTF16CodeUnit(u16)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user