Commit 7400ccc4 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #1681 from Noctem/int64_array

Allow pointer access to 64-bit arrays
parents b2dc5c22 3936bac0
......@@ -75,6 +75,8 @@ cdef extern from *: # Hard-coded utility code hack.
char *as_chars
unsigned long *as_ulongs
long *as_longs
unsigned long long *as_ulonglongs
long long *as_longlongs
short *as_shorts
unsigned short *as_ushorts
Py_UNICODE *as_pyunicodes
......
......@@ -47,6 +47,10 @@ struct arrayobject {
char *as_chars;
unsigned long *as_ulongs;
long *as_longs;
#if PY_MAJOR_VERSION >= 3
unsigned long long *as_ulonglongs;
long long *as_longlongs;
#endif
short *as_shorts;
unsigned short *as_ushorts;
Py_UNICODE *as_pyunicodes;
......
......@@ -132,6 +132,8 @@ Data fields
data.as_uints
data.as_longs
data.as_ulongs
data.as_longlongs # requires Python >=3
data.as_ulonglongs # requires Python >=3
data.as_floats
data.as_doubles
data.as_pyunicodes
......
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