summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorYu Feng <rainwoodman@gmail.com>2017-04-10 10:38:58 -0700
committerYu Feng <rainwoodman@gmail.com>2017-04-10 10:38:58 -0700
commit44f2a623e177606a2d5c27b7b26d5d8d3af8a0da (patch)
tree7b6c14f066a597b1c9e4efc5ddc30b8c2fbb9980 /numpy/lib/tests/test_function_base.py
parent32776774fd6d7f0e62e68ff191b8f834a77932a4 (diff)
downloadnumpy-44f2a623e177606a2d5c27b7b26d5d8d3af8a0da.tar.gz
MAINT: avoid memcpy when i == j
Valgrind complains about memcpy with overlapping address in mtrand.c It happens when i == j in this loop. Closer inspection the i == j iteration is not needed (it is a swap). So, skip it and avoid depending on undefined behavior of memcpy. related read: https://sourceware.org/bugzilla/show_bug.cgi?id=12518
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions