mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 16:15:19 -05:00
PR #21549 introduced a subtle overflow bug that seemed impossible, but can empirically happen. This PR fixes it by saturating to zero. I did try to write a regression test for this, but couldn't manage it. Instead, I'll attach before-and-after screen recordings.