summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-01-21 22:02:28 +0000
committerJim Meyering <jim@meyering.net>2002-01-21 22:02:28 +0000
commit2d1ec9382155be4b86ac09354c3b1c261613625d (patch)
tree941ac04220bfeacec92e2ef5477c573c1c9328cf /src
parent012945ff54e9823ea329e8c954e8cfef6828115e (diff)
downloadcoreutils-2d1ec9382155be4b86ac09354c3b1c261613625d.tar.xz
(CMP_WITH_IGNORE): Don't assume that the difference
between two size_t values can be stored in an int; this doesn't work, for example, on 64-bit Solaris.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index ac82dcf71..409071a30 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1431,7 +1431,7 @@ keycompare (const struct line *a, const struct line *b)
++textb; \
} \
\
- diff = (lima - texta) - (limb - textb); \
+ diff = (texta < lima) - (textb < limb); \
} \
while (0)