summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2024-07-29 03:56:40 (GMT)
committerGitHub <noreply@github.com>2024-07-29 03:56:40 (GMT)
commit169e7138ab84db465b6bf28e6c1dc6c39dbf89f4 (patch)
tree21d936410ac4d1fee18f04f3223a688f71a3503c /Python/fileutils.c
parentbc93923a2dee00751e44da58b6967c63e3f5c392 (diff)
downloadcpython-169e7138ab84db465b6bf28e6c1dc6c39dbf89f4.zip
cpython-169e7138ab84db465b6bf28e6c1dc6c39dbf89f4.tar.gz
cpython-169e7138ab84db465b6bf28e6c1dc6c39dbf89f4.tar.bz2
gh-122234: fix accuracy issues for sum() (#122236)
* Use compensated summation for complex sums with floating-point items. This amends #121176. * sum() specializations for floats and complexes now use PyLong_AsDouble() instead of PyLong_AsLongAndOverflow() and compensated summation as well.
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions