summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarraymodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index 6e3a9d98e..9c6454d3f 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -1416,6 +1416,9 @@ PyArray_Clip(PyArrayObject *self, PyObject *min, PyObject *max, PyArrayObject *o
PyArray_ScalarKind(self->descr->type_num, NULL)) {
indescr = _array_small_type(newdescr, self->descr);
func = indescr->f->fastclip;
+ if (func == NULL) {
+ return _slow_array_clip(self, min, max, out);
+ }
}
else {
indescr = self->descr;