diff options
Diffstat (limited to 'numpy/lib/src')
-rw-r--r-- | numpy/lib/src/_compiled_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c index 0cf034fca..99aec38f0 100644 --- a/numpy/lib/src/_compiled_base.c +++ b/numpy/lib/src/_compiled_base.c @@ -1376,9 +1376,9 @@ pack_bits(PyObject *input, int axis) if (inp == NULL) { return NULL; } - if (!PyArray_ISINTEGER(inp)) { + if (!PyArray_ISBOOL(inp) && !PyArray_ISINTEGER(inp)) { PyErr_SetString(PyExc_TypeError, - "Expected an input array of integer data type"); + "Expected an input array of integer or boolean data type"); goto fail; } |