Minor strcasecmp optimization.

This commit is contained in:
Ryan C. Gordon 2003-03-30 20:46:45 +00:00
parent f22dfbf214
commit fbbaf19a4f
1 changed files with 2 additions and 4 deletions

View File

@ -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));