summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-05-06 21:51:06 +0000
committerJim Meyering <jim@meyering.net>1999-05-06 21:51:06 +0000
commitb10e58db1b2fcac74c55a3bea30b6b51054e4a4c (patch)
treec870b0cb0ef73489b97a246078c3a0abed690790 /src/sort.c
parenta4407423303cfae0250513c78be2444521938854 (diff)
downloadcoreutils-b10e58db1b2fcac74c55a3bea30b6b51054e4a4c.tar.xz
(numcompare): Handle comparison of two negative
numbers correctly in the ENABLE_NLS case.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c2
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