[Numpy-tickets] [NumPy] #340: ndpointer zeros part of 64-bit address
NumPy
numpy-tickets at scipy.net
Mon Oct 16 10:45:36 CDT 2006
#340: ndpointer zeros part of 64-bit address
-----------------------------+----------------------------------------------
Reporter: albertstrasheim | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0 Release
Component: numpy.core | Version: devel
Severity: normal | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment (by albertstrasheim):
Thomas Heller says:
This is not a ctypes bug.
It seems that A.ctypes._as_parameter_ is a Python integer. These are
passed as 'C int' type to foreign function calls. (The C int type
typically has 32 bits on 64-bit platforms, while a pointer has 64 bit.)
To pass a pointer, A.ctypes._as_parameter_ should be a ctypes c_void_p
instance, not a Python integer.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/340#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list