Re: Bug#673590: libxml-libxml-perl: FTBFS on s390x: Failed 1/51 test programs. 0/2419 subtests failed.
On Sun, May 20, 2012 at 10:22:58PM +0200, Philipp Kern wrote:
> you cannot reinterpret a size_t as an int. size_t might be unsigned, might
> have another length, etc. On 64bit big endian you fill the top bits and
> leave the lower ones untouched, because size_t is 64bit. So yeah, that code
> was broken. (nbd had something similar, glib too. I don't know why it only
> turns up with 64bit big endian.)
Because on little endian 64bit, it touches the lower bytes.
Bones: "The man's DEAD, Jim!"