summaryrefslogtreecommitdiff
path: root/numpy/core/src/multiarraymodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/multiarraymodule.c')
-rw-r--r--numpy/core/src/multiarraymodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index 8b486c82d..d543def01 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -1643,7 +1643,7 @@ PyArray_CanCoerceScalar(char thistype, char neededtype,
case PyArray_OBJECT_SCALAR:
return PyArray_CanCastSafely(thistype, neededtype);
case PyArray_INTPOS_SCALAR:
- return (neededtype >= PyArray_UBYTE);
+ return (neededtype >= PyArray_BYTE);
case PyArray_INTNEG_SCALAR:
return (neededtype >= PyArray_BYTE) && \
!(PyTypeNum_ISUNSIGNED(neededtype));