diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2023-07-11 15:07:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 15:07:20 (GMT) |
commit | a2d54d4e8ab12f967a220be88bde8ac8227c5ab3 (patch) | |
tree | 3ea2f10c4be08cc2d2fe86f5d8328522e0704257 /Python/codecs.c | |
parent | 64c0890b697783db9b3f67e3bb4dcee1165a0b9b (diff) | |
download | cpython-a2d54d4e8ab12f967a220be88bde8ac8227c5ab3.zip cpython-a2d54d4e8ab12f967a220be88bde8ac8227c5ab3.tar.gz cpython-a2d54d4e8ab12f967a220be88bde8ac8227c5ab3.tar.bz2 |
gh-106498: Revert incorrect colorsys.rgb_to_hls change (#106627)
gh-86618 assumed a-b-c = a-(b+c) = a-d where d = b+d.
For floats 2.0, 1.0, and 0.9999999999999999, this assumption
is false. The net change of 1.1102230246251565e-16 to 0.0
results in division by 0. Revert the replacement. Add test.
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions