mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
_precondition => _require
This commit is contained in:
committed by
Max Moiseev
parent
f2f50d6a9d
commit
e6468a0eca
@@ -223,7 +223,7 @@ struct _UnicodeGraphemeClusterBreakPropertyTrie {
|
||||
(dataBlockIndex << ${BMPDataOffsetBits}) &+
|
||||
_getBMPDataOffset(codePoint)])
|
||||
} else {
|
||||
_precondition(codePoint <= 0x10ffff)
|
||||
_require(codePoint <= 0x10ffff)
|
||||
let secondLookupIndex = Int(_SuppLookup1[_getSuppFirstLevelIndex(codePoint)])
|
||||
let dataBlockIndex = Int(_SuppLookup2[
|
||||
(secondLookupIndex << ${SuppSecondLevelIndexBits}) &+
|
||||
|
||||
Reference in New Issue
Block a user