Unsafe[Mutable]Pointer.memory => .pointee

This commit is contained in:
Dmitri Gribenko
2015-11-05 15:45:35 -08:00
committed by Max Moiseev
parent f1dbe205a3
commit 3d0ad16094
44 changed files with 134 additions and 135 deletions

View File

@@ -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)
}
}
}