mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adding an explicit type context for ==
This commit is contained in:
@@ -156,7 +156,8 @@ public struct _StringCore {
|
||||
| UInt(extendingOrTruncating: count)
|
||||
|
||||
self._owner = owner
|
||||
_sanityCheck(UInt(count) & _flagMask == 0, "String too long to represent")
|
||||
_sanityCheck(UInt(count) & _flagMask == (0 as UInt),
|
||||
"String too long to represent")
|
||||
_invariantCheck()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user