We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5227a3 commit 47a3a71Copy full SHA for 47a3a71
stdlib/public/core/CString.swift
@@ -61,7 +61,6 @@ public func _persistCString(s: UnsafePointer<CChar>) -> [CChar]? {
61
let length = Int(_swift_stdlib_strlen(s))
62
var result = [CChar](count: length + 1, repeatedValue: 0)
63
for i in 0..<length {
64
- // FIXME: this will not compile on platforms where 'CChar' is unsigned.
65
result[i] = s[i]
66
}
67
return result
0 commit comments