Commit adeb5a86 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #2712 from jakirkham/fix_array_typecode

Fix array typecode's type
parents 4fa791c8 fd58d7f7
...@@ -59,7 +59,7 @@ cdef extern from *: # Hard-coded utility code hack. ...@@ -59,7 +59,7 @@ cdef extern from *: # Hard-coded utility code hack.
ctypedef object GETF(array a, Py_ssize_t ix) ctypedef object GETF(array a, Py_ssize_t ix)
ctypedef object SETF(array a, Py_ssize_t ix, object o) ctypedef object SETF(array a, Py_ssize_t ix, object o)
ctypedef struct arraydescr: # [object arraydescr]: ctypedef struct arraydescr: # [object arraydescr]:
int typecode char typecode
int itemsize int itemsize
GETF getitem # PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); GETF getitem # PyObject * (*getitem)(struct arrayobject *, Py_ssize_t);
SETF setitem # int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *); SETF setitem # int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment