>> nokile:~$ perl -e 'print unpack("I", pack("I", 2**38)),"\n";'
>> 4294967295
>
> 2**38 is not 4294967295 - it's 274877906944

That's what I'm saying. pack and unpackt don't handle 64 bits.

> The internal Int size of your perl is 32bits.

No, that's not true. Look at my first example, it gives the correct
answer:

>> nokile:~$ perl -e 'print 2**38, "\n";'
>> 274877906944

-- 
pack does not support Q, but perl supports 64 bit scalars
https://bugs.launchpad.net/bugs/83461
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to