Skip to content

Commit

Permalink
make SDL_strcasecmp standard compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere authored and slouken committed Mar 22, 2022
1 parent b59ca92 commit aec58d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdlib/SDL_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,8 @@ SDL_strcasecmp(const char *str1, const char *str2)
++str1;
++str2;
}
a = SDL_toupper(*str1);
b = SDL_toupper(*str2);
a = SDL_toupper((unsigned char) *str1);
b = SDL_toupper((unsigned char) *str2);
return (int) ((unsigned char) a - (unsigned char) b);
#endif /* HAVE_STRCASECMP */
}
Expand Down

0 comments on commit aec58d8

Please sign in to comment.