mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
StaticString: use a less error-prone bit masking construct
Swift SVN r22357
This commit is contained in:
@@ -102,7 +102,7 @@ public struct StaticString
|
||||
/// `isASCII` is unspecified.
|
||||
@transparent
|
||||
public var isASCII: Bool {
|
||||
return (UWord(_flags) & 0x2) == 0x2
|
||||
return (UWord(_flags) & 0x2) != 0
|
||||
}
|
||||
|
||||
/// Invoke `body` with a buffer containing the UTF-8 code units of
|
||||
|
||||
Reference in New Issue
Block a user