summaryrefslogtreecommitdiff
path: root/numpy/f2py/cb_rules.py
diff options
context:
space:
mode:
authorChris Kerr <debdepba@dasganma.tk>2014-11-10 14:18:37 +0000
committerChris Kerr <debdepba@dasganma.tk>2014-11-10 14:18:37 +0000
commit2129f5c5c0f52d4e428f406e1cbd7ce62bca4af8 (patch)
tree860fae44b1ab84577bd7355944e23514e9c75028 /numpy/f2py/cb_rules.py
parentc5463e8134d80e72d03d01d0e2427f47404b1c0b (diff)
downloadnumpy-2129f5c5c0f52d4e428f406e1cbd7ce62bca4af8.tar.gz
DEP: replaced arr->data with PyArray_DATA
Diffstat (limited to 'numpy/f2py/cb_rules.py')
-rw-r--r--numpy/f2py/cb_rules.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/cb_rules.py b/numpy/f2py/cb_rules.py
index f3bf848a7..3f8edf3c8 100644
--- a/numpy/f2py/cb_rules.py
+++ b/numpy/f2py/cb_rules.py
@@ -384,7 +384,7 @@ cb_arg_rules=[
\t\t\tfprintf(stderr,\"rv_cb_arr is NULL\\n\");
\t\t\tgoto capi_fail;
\t\t}
-\t\tMEMCOPY(#varname_i#,rv_cb_arr->data,PyArray_NBYTES(rv_cb_arr));
+\t\tMEMCOPY(#varname_i#,PyArray_DATA(rv_cb_arr),PyArray_NBYTES(rv_cb_arr));
\t\tif (capi_tmp != (PyObject *)rv_cb_arr) {
\t\t\tPy_DECREF(rv_cb_arr);
\t\t}