Skip to content

Commit 97cb87e

Browse files
authored
Merge pull request #18643 from troughton/patch-1
[stdlib] UnicodeScalarProperties: use RawValue over UInt32
2 parents 59eae1e + b93a351 commit 97cb87e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/public/core/UnicodeScalarProperties.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,8 @@ extension Unicode.Scalar.Properties {
10701070
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
10711071
public var generalCategory: Unicode.GeneralCategory {
10721072
let rawValue = __swift_stdlib_UCharCategory(
1073-
UInt32(__swift_stdlib_u_getIntPropertyValue(
1073+
__swift_stdlib_UCharCategory.RawValue(
1074+
__swift_stdlib_u_getIntPropertyValue(
10741075
icuValue, __swift_stdlib_UCHAR_GENERAL_CATEGORY)))
10751076
return Unicode.GeneralCategory(rawValue: rawValue)
10761077
}
@@ -1347,7 +1348,8 @@ extension Unicode.Scalar.Properties {
13471348
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
13481349
public var numericType: Unicode.NumericType? {
13491350
let rawValue = __swift_stdlib_UNumericType(
1350-
UInt32(__swift_stdlib_u_getIntPropertyValue(
1351+
__swift_stdlib_UNumericType.RawValue(
1352+
__swift_stdlib_u_getIntPropertyValue(
13511353
icuValue, __swift_stdlib_UCHAR_NUMERIC_TYPE)))
13521354
return Unicode.NumericType(rawValue: rawValue)
13531355
}

0 commit comments

Comments
 (0)