summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorKevin Sheppard <kevin.k.sheppard@gmail.com>2021-02-18 17:56:45 +0000
committerKevin Sheppard <kevin.k.sheppard@gmail.com>2021-02-18 17:56:45 +0000
commit23136aa98a402ed4230bc7e42e1669931c5d8784 (patch)
tree536978837d7d7882f7b7c935c510a6c135039628 /numpy
parente2467e463d7f0c7fe01ef33311d007f7182a0cf7 (diff)
downloadnumpy-23136aa98a402ed4230bc7e42e1669931c5d8784.tar.gz
CLN: Add additional cast
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/ctors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c
index fc1152d51..c98d27512 100644
--- a/numpy/core/src/multiarray/ctors.c
+++ b/numpy/core/src/multiarray/ctors.c
@@ -2907,7 +2907,7 @@ _arange_safe_ceil_to_intp(double value)
"arange: cannot compute length");
return -1;
}
- if (!(NPY_MIN_INTP <= ivalue && ivalue <= (double)NPY_MAX_INTP)) {
+ if (!((double)NPY_MIN_INTP <= ivalue && ivalue <= (double)NPY_MAX_INTP)) {
PyErr_SetString(PyExc_OverflowError,
"arange: overflow while computing length");
return -1;