Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
5000e1a3
Commit
5000e1a3
authored
Aug 23, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repair declared return type of PyArray_DESCR() macro in numpy.
parent
c098208a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Cython/Includes/numpy/__init__.pxd
Cython/Includes/numpy/__init__.pxd
+4
-1
No files found.
Cython/Includes/numpy/__init__.pxd
View file @
5000e1a3
...
...
@@ -200,6 +200,9 @@ cdef extern from "numpy/arrayobject.h":
# as just a PyObject*.
PyObject
*
shape
ctypedef
struct
PyArray_Descr
:
pass
ctypedef
class
numpy
.
dtype
[
object
PyArray_Descr
]:
# Use PyDataType_* macros when possible, however there are no macros
# for accessing some of the fields, so some are defined.
...
...
@@ -436,7 +439,7 @@ cdef extern from "numpy/arrayobject.h":
npy_intp
PyArray_STRIDE
(
ndarray
,
size_t
)
PyObject
*
PyArray_BASE
(
ndarray
)
# returns borrowed reference!
Py
Object
*
PyArray_DESCR
(
ndarray
)
# returns borrowed reference to dtype!
Py
Array_Descr
*
PyArray_DESCR
(
ndarray
)
# returns borrowed reference to dtype!
int
PyArray_FLAGS
(
ndarray
)
npy_intp
PyArray_ITEMSIZE
(
ndarray
)
int
PyArray_TYPE
(
ndarray
arr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment