StaticString: use a less error-prone bit masking construct

Swift SVN r22357
This commit is contained in:
Dmitri Hrybenko
2014-09-29 18:40:56 +00:00
parent 4f38403eda
commit d7e724efa0

View File

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