projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a440742
)
(numcompare): Handle comparison of two negative
author
Jim Meyering
<jim@meyering.net>
Thu, 6 May 1999 21:51:06 +0000
(21:51 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/sort.c
b/src/sort.c
index
9e7de66
..
f9b4ccd
100644
(file)
--- 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