summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-05-12 16:36:59 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2021-05-12 18:44:46 -0700
commit1d3b9b25334a506173fd6ec4988960c916f1fa7f (patch)
treefeff5eda2f1f0dc6ddfcc608dc191c747d2a8ef3 /numpy/lib/arraysetops.py
parent6fd0f97b436c162ba4b613c7dff665d56d351f84 (diff)
downloadnumpy-1d3b9b25334a506173fd6ec4988960c916f1fa7f.tar.gz
BUG: Fortify against longdouble cast loss
Base the "magic" value of the double, and use nextafter even for the equal condition to avoid rounding during the cast to longdouble. This might further be necessary because the code uses double constants and not longdouble ones (not sure about this). Using nextafter on the double value should put us firmly on the right side and nobody should care about the few ulps in between those values.
Diffstat (limited to 'numpy/lib/arraysetops.py')
0 files changed, 0 insertions, 0 deletions