Adding an explicit type context for ==

This commit is contained in:
Max Moiseev
2017-03-30 12:30:03 -07:00
parent cd98994b9d
commit b0c45481bf

View File

@@ -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()
}