Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor strcasecmp optimization.
  • Loading branch information
icculus committed Mar 30, 2003
1 parent f22dfbf commit fbbaf19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions platform/posix.c
Expand Up @@ -131,10 +131,8 @@ int __PHYSFS_platformStricmp(const char *x, const char *y)
{
ux = toupper((int) *x);
uy = toupper((int) *y);
if (ux > uy)
return(1);
else if (ux < uy)
return(-1);
if (ux != uy)
return((ux > uy) ? 1 : -1);
x++;
y++;
} while ((ux) && (uy));
Expand Down

0 comments on commit fbbaf19

Please sign in to comment.