diff options
Diffstat (limited to 'numpy/core/src/scalarmathmodule.c.src')
-rw-r--r-- | numpy/core/src/scalarmathmodule.c.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src index c4bb082dc..7c0846ff7 100644 --- a/numpy/core/src/scalarmathmodule.c.src +++ b/numpy/core/src/scalarmathmodule.c.src @@ -795,7 +795,7 @@ _@name@_convert_to_ctype(PyObject *a, @type@ *arg1) if(PyLong_CheckExact(a)) { *arg1 = PyLong_AsUnsignedLong(a); - if (*arg1 == -1 && PyErr_Occurred()) { + if (*arg1 == (unsigned long)-1 && PyErr_Occurred()) { return -1; } else { |