]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(sortlines_temp): Declare temporary as `int' rather
authorJim Meyering <jim@meyering.net>
Wed, 5 Oct 2005 18:53:55 +0000 (18:53 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Oct 2005 18:53:55 +0000 (18:53 +0000)
than `bool' to work around AIX 5.3 compiler bug in 64-bit mode.

src/sort.c

index 7b736c1524a95e1a2578861a713ea8756763fcd7..132217576de3e7e17c37527a016e85ad4a2371af 100644 (file)
@@ -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];
     }