ctypes from_param() truncating 64 bit pointers to 32 bit
Joakim Hove
joakim.hove at gmail.com
Fri Feb 18 03:29:42 EST 2011
Hello,
I wonder if I am encountering a bug in ctypes; or if I am doing things
wrong? I have written a small Python class wrapping a C library, the
Python class has a from_param() method which passes a "raw pointer
value" from Python to C. When reaching C the pointer has been
truncated to 32 bits.
I have written a quite extensive post about this on Stackoverflow:
http://www.stackoverflow.com/q/5029341/421889/ - so far without
response. Would have been very glad if anyone could indicate if this
was a bug on my part, or if it is a ctypes bug.
I have tried with Python version 2.4 and 2.6 with identical results.
Regards Joakim
More information about the Python-list
mailing list