bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug report: sort.c or AIX compiler


From: Jim Meyering
Subject: Re: Bug report: sort.c or AIX compiler
Date: Wed, 05 Oct 2005 19:34:27 +0200

"Lemley James - jlemle" <address@hidden> wrote:
> when compiling coreutils 5.90 on AIX 5.3 in 64 bit mode
> (OBJECT_MODE=64),
>
> sort dumps core at line 1724 or 1725 (coreutils 5.90).
>
> It works fine in 32-bit mode, and debugging statements I add make it
> seem like the code is doing the right thing.
>
> Same thing is present in coreutils 5.30, and probably has been in sort.c
> since it was written, but that's a wild guess.
>
> When this change is made, it runs just fine (well, it works for at least
> one input) after being compiled in 64-bit mode:
>
> 1723c1723
>
> <       bool swap = (0 < compare (&lines[-1], &lines[-2]));
>
> ---
>
>>       int swap = (0 < compare (&lines[-1], &lines[-2]));

Thanks for the detailed report.
Would you please see if it works with this syntax?

  bool swap = !!(0 < compare (&lines[-1], &lines[-2]));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]