Skip to content

Commit

Permalink
better readability..
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jul 30, 2019
1 parent 5f04ed5 commit 2ea0ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_string.c
Expand Up @@ -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++;
Expand Down

0 comments on commit 2ea0ec6

Please sign in to comment.