platform/posix.c
changeset 558 a62e8e26dfc9
parent 504 3420d82f9b01
child 596 381b6ca0dd85
--- a/platform/posix.c	Sun Mar 30 20:46:25 2003 +0000
+++ b/platform/posix.c	Sun Mar 30 20:46:45 2003 +0000
@@ -131,10 +131,8 @@
     {
         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));