From: Jim Meyering Date: Mon, 21 Jan 2002 22:02:28 +0000 (+0000) Subject: (CMP_WITH_IGNORE): Don't assume that the difference X-Git-Tag: TEXTUTILS-2_0_20~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d1ec9382155be4b86ac09354c3b1c261613625d;p=thirdparty%2Fcoreutils.git (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. --- diff --git a/src/sort.c b/src/sort.c index ac82dcf715..409071a302 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)