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
refactor(parser): improve safety of char to bytes conversions (#13193)
`to_bytes` converts a `char` to a series of `N` bytes. Add an assertion
to make sure that the character *is* actually `N` bytes long.
Also, const assert the value of `LOSSY_REPLACEMENT_CHAR_FIRST_BYTE`,
rather than just a comment stating what we expect it to be.
0 commit comments