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. Bastian -- Bones: "The man's DEAD, Jim!" -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

