From: Jim Meyering Date: Wed, 5 Oct 2005 18:53:55 +0000 (+0000) Subject: (sortlines_temp): Declare temporary as `int' rather X-Git-Tag: v5.91~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=111bac99434fb1514c4636450504c9a518598714;p=thirdparty%2Fcoreutils.git (sortlines_temp): Declare temporary as `int' rather than `bool' to work around AIX 5.3 compiler bug in 64-bit mode. --- diff --git a/src/sort.c b/src/sort.c index 7b736c1524..132217576d 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1720,7 +1720,7 @@ sortlines_temp (struct line *lines, size_t nlines, struct line *temp) { if (nlines == 2) { - bool swap = (0 < compare (&lines[-1], &lines[-2])); + int swap = (0 < compare (&lines[-1], &lines[-2])); temp[-1] = lines[-1 - swap]; temp[-2] = lines[-2 + swap]; }