mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[util] Fix UTF8 encodeTypedChar for 4 byte chars
Some flipped logic here...
This commit is contained in:
parent
f3fb5ba320
commit
3fddc364ee
@ -126,7 +126,7 @@ namespace dxvk::str {
|
|||||||
return 3;
|
return 3;
|
||||||
} else if (ch < 0x200000) {
|
} else if (ch < 0x200000) {
|
||||||
if (begin) {
|
if (begin) {
|
||||||
if (unlikely(begin + 4 < end))
|
if (unlikely(begin + 4 > end))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
begin[0] = uint8_t(0xF0 | ((ch >> 18)));
|
begin[0] = uint8_t(0xF0 | ((ch >> 18)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user