From b10e58db1b2fcac74c55a3bea30b6b51054e4a4c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 May 1999 21:51:06 +0000 Subject: [PATCH] (numcompare): Handle comparison of two negative numbers correctly in the ENABLE_NLS case. --- src/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3