diff options
author | Yu Feng <rainwoodman@gmail.com> | 2017-04-10 10:38:58 -0700 |
---|---|---|
committer | Yu Feng <rainwoodman@gmail.com> | 2017-04-10 10:38:58 -0700 |
commit | 44f2a623e177606a2d5c27b7b26d5d8d3af8a0da (patch) | |
tree | 7b6c14f066a597b1c9e4efc5ddc30b8c2fbb9980 /numpy/lib/nanfunctions.py | |
parent | 32776774fd6d7f0e62e68ff191b8f834a77932a4 (diff) | |
download | numpy-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/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions