summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index cc2afdbf4..fa46a918b 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -248,7 +248,7 @@ class _ctypes(object):
return (obj*self._arr.ndim)(*self._arr.strides)
def get_data(self):
- return self._ctypes.c_void_p(self._data)
+ return self._data
def get_shape(self):
if self._zerod:
@@ -261,7 +261,7 @@ class _ctypes(object):
return (_getintp_ctype()*self._arr.ndim)(*self._arr.strides)
def get_as_parameter(self):
- return self._data
+ return self._ctypes.c_void_p(self._data)
data = property(get_data, None, doc="c-types data")
shape = property(get_shape, None, doc="c-types shape")