"Lemley James - jlemle" <[EMAIL PROTECTED]> 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]));


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to