On 22 Jun 2006 09:30:26 -0700, Nadav Samet <[EMAIL PROTECTED]> wrote:
...
> But apparently, on 64-bit platforms it tries to read 64-bit unsigned
> integer (since
> that's what the C Type unsigned long means on 64-bit platforms).
On /some/ 64-bit platforms. Others let unsigned long be 32-bit and in
Nadav Samet wrote:
> Hi,
>
> I am trying to unpack a 32-bit unsigned integer from a string using
> struct.unpack.
> so using string.unpack('L', data) would work fine on 32-bit systems,
>
> But apparently, on 64-bit platforms it tries to read 64-bit unsigned
> integer (since
> that's what the C T
Hi,
I am trying to unpack a 32-bit unsigned integer from a string using
struct.unpack.
so using string.unpack('L', data) would work fine on 32-bit systems,
But apparently, on 64-bit platforms it tries to read 64-bit unsigned
integer (since
that's what the C Type unsigned long means on 64-bit pla