summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-01-21 10:37:19 -0800
committerGitHub <noreply@github.com>2020-01-21 10:37:19 -0800
commit5b7d62ae8fbb5216c5fae34b09d8157bc45408d9 (patch)
treecf0bcfd3bb74af45824db3dc789d7988e4173ddc /numpy
parent287a9d0646c9cc40385615264348a637a7c57205 (diff)
parent2651332a6046e27632bd581de43601d4312c6d1e (diff)
downloadnumpy-5b7d62ae8fbb5216c5fae34b09d8157bc45408d9.tar.gz
Merge pull request #15369 from Kai-Striega/simd_fix_signed_comparison
MAINT: simd: Avoid signed comparison warning
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/simd.inc.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/simd.inc.src b/numpy/core/src/umath/simd.inc.src
index 448aa3e72..121597579 100644
--- a/numpy/core/src/umath/simd.inc.src
+++ b/numpy/core/src/umath/simd.inc.src
@@ -1134,7 +1134,7 @@ sse2_@kind@_@TYPE@(@type@ * ip, @type@ * op, const npy_intp n)
/* Order of operations important for MSVC 2015 */
*op = (*op @OP@ ip[i] || npy_isnan(*op)) ? *op : ip[i];
}
- assert((npy_uintp)n < (stride) || npy_is_aligned(&ip[i], VECTOR_SIZE_BYTES));
+ assert(n < stride || npy_is_aligned(&ip[i], VECTOR_SIZE_BYTES));
if (i + 3 * stride <= n) {
/* load the first elements */
@vtype@ c1 = @vpre@_load_@vsuf@((@type@*)&ip[i]);