Re: lnav/0.7.0-2: FTBFS on mips, powerpc, s390x and sparc
Hi Patrick,
On Wed, Apr 02, 2014 at 03:09:47PM -0500, Patrick Baggett wrote:
> Seems like a tiny fix, as mentioned by the owner "tstack" in
> "line_buffer.cc(185)". Upstream should be able to do this easily.
>
> this->lb_file_time = *((int32_t *)&gz_id[4]);
>
> should be something to the effect of:
>
> this->lb_file_time = (gz_id[4]) | (gz_id[5] << 8) | (gz_id[6] << 16) | (
> gz_id[7] << 24);
>
> to reassemble the 32-bit value regardless of native byte order. Also, it
> will removing the warning from type-punning that happens when you
> do *((int32_t *)&something);
Thanks for your quick help!
Regards,
Salvatore
Reply to: