summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarraymodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index e8cd9108d..b03723e37 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -1685,7 +1685,11 @@ PyArray_As2D(PyObject **op, char ***ptr, int *d1, int *d2, int typecode)
{
intp newdims[2];
PyArray_Descr *descr;
+ char msg[] = "PyArray_As1D: use PyArray_AsCArray.";
+ if (DEPRECATE(msg) < 0) {
+ return -1;
+ }
descr = PyArray_DescrFromType(typecode);
if (PyArray_AsCArray(op, (void *)ptr, newdims, 2, descr) == -1)
return -1;