Skip to content

Commit 8a0858f

Browse files
authored
Merge pull request numpy#15120 from mattip/build-warnings
MAINT,CI: fix signed-unsigned comparison warning
2 parents 66bfedd + 28848d7 commit 8a0858f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

numpy/core/src/umath/simd.inc.src

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,11 @@ run_binary_simd_@kind@_@TYPE@(char **args, npy_intp *dimensions, npy_intp *steps
280280
@type@ * op = (@type@ *)args[2];
281281
npy_intp n = dimensions[0];
282282
#if defined __AVX512F__
283-
const npy_intp vector_size_bytes = 64;
283+
const npy_uintp vector_size_bytes = 64;
284284
#elif defined __AVX2__
285-
const npy_intp vector_size_bytes = 32;
285+
const npy_uintp vector_size_bytes = 32;
286286
#else
287-
const npy_intp vector_size_bytes = 32;
287+
const npy_uintp vector_size_bytes = 32;
288288
#endif
289289
/* argument one scalar */
290290
if (IS_BLOCKABLE_BINARY_SCALAR1(sizeof(@type@), vector_size_bytes)) {

tools/travis-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
155155
export F90='gfortran --coverage'
156156
export LDFLAGS='--coverage'
157157
fi
158-
$PYTHON setup.py build build_src --verbose-cfg bdist_wheel
158+
$PYTHON setup.py build --warn-error build_src --verbose-cfg bdist_wheel
159159
# Make another virtualenv to install into
160160
virtualenv --python=`which $PYTHON` venv-for-wheel
161161
. venv-for-wheel/bin/activate

0 commit comments

Comments
 (0)