You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When CodePointTrie of the fast type is queried with u16, the code point cannot be above FAST_TYPE_FAST_INDEXING_MAX. When CodePointTrie (of either type) is queried with char, the code point cannot be above CODE_POINT_MAX.
We should ensure that the relevant branches are omitted in these cases. Perhaps its good enough to ensure this by Godbolting, but actually having separate code for these cases would be robust (not relying on the optimizer reaching a particular conclusion) and obvious.
The text was updated successfully, but these errors were encountered:
When
CodePointTrie
of the fast type is queried withu16
, the code point cannot be aboveFAST_TYPE_FAST_INDEXING_MAX
. WhenCodePointTrie
(of either type) is queried withchar
, the code point cannot be aboveCODE_POINT_MAX
.We should ensure that the relevant branches are omitted in these cases. Perhaps its good enough to ensure this by Godbolting, but actually having separate code for these cases would be robust (not relying on the optimizer reaching a particular conclusion) and obvious.
The text was updated successfully, but these errors were encountered: