[issue22732] ctypes tests don't set correct restype for intptr_t functions

Steve Dower report at bugs.python.org
Mon Oct 27 20:20:37 CET 2014


Steve Dower added the comment:

I missed c_size_t somehow, but as eryksun says, it's not strictly the same thing. Of course, my current patch isn't the same thing either as it only supports 32-bit and 64-bit pointer sizes.

I could make a bigger change to use c_void_p and compare its .value against None instead of 0 (which seems to be the only difference)?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22732>
_______________________________________


More information about the Python-bugs-list mailing list