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 d45027b commit 45fdb08Copy full SHA for 45fdb08
Sources/_StringProcessing/Unicode/ScalarProps.swift
@@ -29,8 +29,10 @@ extension Unicode.Script {
29
30
static func extensions(for scalar: Unicode.Scalar) -> [Unicode.Script] {
31
var count: UInt8 = 0
32
- let pointer = _swift_string_processing_getScriptExtensions(scalar.value, &count)
33
-
+ let pointer = withUnsafeMutablePointer(to: &count) {
+ _swift_string_processing_getScriptExtensions(scalar.value, &count)
34
+ }
35
+
36
guard let pointer = pointer else {
37
return [Unicode.Script(scalar)]
38
}
0 commit comments