mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
sort: fix issue with -rk in previous commit
* src/sort.c (keycompare): Fix typo causing -r to be effectively ignored with -k. Fixes https://bugs.gnu.org/55622
This commit is contained in:
1 parent
a351fdd6fc
commit
4e0167ea14
1 file changed
+1
-1
+1
-1
@@ -2795,7 +2795,7 @@ keycompare (struct line const *a, struct line const *b)
|
||||
}
|
||||
|
||||
if (key->reverse)
|
||||
diff = diff < 0 ? -1 : -diff;
|
||||
diff = diff < 0 ? 1 : -diff;
|
||||
return diff;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user