diff options
author | Jim Meyering <jim@meyering.net> | 1999-05-06 21:51:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-05-06 21:51:06 +0000 |
commit | b10e58db1b2fcac74c55a3bea30b6b51054e4a4c (patch) | |
tree | c870b0cb0ef73489b97a246078c3a0abed690790 /src | |
parent | a4407423303cfae0250513c78be2444521938854 (diff) | |
download | coreutils-b10e58db1b2fcac74c55a3bea30b6b51054e4a4c.tar.xz |
(numcompare): Handle comparison of two negative
numbers correctly in the ENABLE_NLS case.
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c index 9e7de66d0..f9b4ccd4e 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 |