python2.5 ctypes.c_longlong has wrong size (32 bits instead of 64)
Bug #71914 reported by
David Cournapeau
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.5 (Ubuntu) |
Fix Released
|
Undecided
|
Matthias Klose |
Bug Description
Binary package hint: python2.5
I have recently checked some of my python+ctypes code on python2.5 to find it did not work. After quite some time, I found out that ctypes.c_longlong is 32 bits, whereas it should be 64 bits.
I checked on two different machines (both edgy on x86). To reproduce the result, just execute :
python2.5 -c "from ctypes import c_longlong, sizeof; print sizeof(c_longlong)"
It will prints 4 instead of 8.
A manually installed python prints 8, so there is a problem in the packaging somewhere. Note that this problem is not present in python2.4-ctypes. Also, and I guess this is related, ctypes.c_int64 is not available.
description: | updated |
To post a comment you must log in.
I've just reproduced the bug on my minimac (ppc) at home, also