From: Jim Meyering Date: Thu, 6 May 1999 21:51:06 +0000 (+0000) Subject: (numcompare): Handle comparison of two negative X-Git-Tag: TEXTUTILS-1_22k~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b10e58db1b2fcac74c55a3bea30b6b51054e4a4c;p=thirdparty%2Fcoreutils.git (numcompare): Handle comparison of two negative numbers correctly in the ENABLE_NLS case. --- diff --git a/src/sort.c b/src/sort.c index 9e7de66d07..f9b4ccd4ec 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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