summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-12-02 04:11:31 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-12-02 04:11:31 +0000
commitbf677ca3b1b02c57da75a302a0f0b5704e3f525f (patch)
tree06947d88317a5c3787ce13bd4b6250b2341e19ca /numpy/core/src/arrayobject.c
parent574fe369112ded91f80502db73022a8fd79d3fe3 (diff)
downloadnumpy-bf677ca3b1b02c57da75a302a0f0b5704e3f525f.tar.gz
Allow argsort and sort functions and argsort method to take None as an argument. Add order= keyword to sort and argsort functions.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index ac85fcd23..bc662b7d1 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -8445,7 +8445,7 @@ PyArray_ObjectType(PyObject *op, int minimum_type)
outtype = _array_find_type(op, intype, MAX_DIMS);
ret = outtype->type_num;
Py_DECREF(outtype);
- Py_DECREF(intype);
+ Py_XDECREF(intype);
return ret;
}