summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-09-21 13:09:07 +0200
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-09-21 20:49:25 +0200
commit10d15ea888880e9b0d22fd7e36f96fff18255e55 (patch)
treeb326cd1cfe53d126e4b4fd7d20b2f4f05f9ee93d /numpy
parente467a284d1a2055337ce73cd92aadb491aa9a776 (diff)
downloadnumpy-10d15ea888880e9b0d22fd7e36f96fff18255e55.tar.gz
MAINT: Fix LGTM.com warning
Multiplication result converted to larger type Multiplication result may overflow 'int' before it is converted to 'unsigned long'. One of the multiplication operands should have type 'size_t'.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/nditer_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/nditer_impl.h b/numpy/core/src/multiarray/nditer_impl.h
index b36ab8543..2a82b7e54 100644
--- a/numpy/core/src/multiarray/nditer_impl.h
+++ b/numpy/core/src/multiarray/nditer_impl.h
@@ -289,7 +289,7 @@ struct NpyIter_AxisData_tag {
1 + \
/* intp stride[nop+1] AND char* ptr[nop+1] */ \
2*((nop)+1) \
- )*NPY_SIZEOF_INTP )
+ )*(size_t)NPY_SIZEOF_INTP)
/*
* Macro to advance an AXISDATA pointer by a specified count.