(numcompare): Handle comparison of two negative
authorJim Meyering <jim@meyering.net>
Thu, 6 May 1999 21:51:06 +0000 (21:51 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 May 1999 21:51:06 +0000 (21:51 +0000)
numbers correctly in the ENABLE_NLS case.

src/sort.c

index 9e7de66..f9b4ccd 100644 (file)
@@ -1317,7 +1317,7 @@ numcompare (register const char *a, register const char *b)
       if ((diff == 0) && (*a == decimal_point || *b == decimal_point))
        return ret_code * fraccompare (a, b);
 
-      return diff;             /* fall through here, and diff decides */
+      return ret_code * diff;  /* fall through here, and diff decides */
     }
 }
 #else