mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 01:38:27 +00:00
better readability..
This commit is contained in:
parent
5f04ed5fbd
commit
2ea0ec6207
1 changed files with 1 additions and 1 deletions
|
@ -549,7 +549,7 @@ SDL_utf8strlen(const char *str)
|
|||
const char *p = str;
|
||||
char ch;
|
||||
|
||||
while ((ch = *(p++))) {
|
||||
while ((ch = *(p++)) != 0) {
|
||||
/* if top two bits are 1 and 0, it's a continuation byte. */
|
||||
if ((ch & 0xc0) != 0x80) {
|
||||
retval++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue