mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-02 15:34:05 +00:00
fixed incorrect utfsize
This commit is contained in:
parent
a47be2f89f
commit
1c0db70191
@ -61,7 +61,7 @@ int utfsize(char c) {
|
|||||||
unsigned char cu = c;
|
unsigned char cu = c;
|
||||||
if(cu < 128) return 1;
|
if(cu < 128) return 1;
|
||||||
if(cu < 224) return 2;
|
if(cu < 224) return 2;
|
||||||
if(cu < 0xE0) return 3;
|
if(cu < 0xF0) return 3;
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user