diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-05-21 03:25:45 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-05-21 03:25:45 +0000 |
commit | 1558871def68c543b840755e9d446f257cf5736c (patch) | |
tree | 3bf55027a7f1b2060aea6ee16fbb12203c8a5606 /numpy | |
parent | 0af4c99f67ca552646fce0edb93905a042b6248f (diff) | |
download | numpy-1558871def68c543b840755e9d446f257cf5736c.tar.gz |
Fixed bug in scalar casting..
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarraymodule.c | 2 |
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)); |