summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-09-21 15:52:09 -0700
committerGitHub <noreply@github.com>2021-09-21 15:52:09 -0700
commita838abe68ce6bf8164c31cc35a2ac8d5485754ec (patch)
tree28dbbbd785879a143659a3806038abbf7d5e790c /numpy
parent355163f6a6c2abb6815f3f562430d4c9baa101aa (diff)
parent10d15ea888880e9b0d22fd7e36f96fff18255e55 (diff)
downloadnumpy-a838abe68ce6bf8164c31cc35a2ac8d5485754ec.tar.gz
Merge pull request #19914 from DimitriPapadopoulos/lgtm_warning_size_t
MAINT: Fix LGTM.com warning in nditer_imp.h
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.