]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix arithmetic stability issue (#2817)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Sat, 29 Jan 2022 00:57:05 +0000 (16:57 -0800)
committerGitHub <noreply@github.com>
Sat, 29 Jan 2022 00:57:05 +0000 (16:57 -0800)
commit95e77cb5590a1499d3aa4cf7fe60481347191c35
treeef09c276c77f769743158cd157e09dd923cd4777
parentdf0aeeeee0378f2d2cdc33cbb38e17c3b8b53bde
Fix arithmetic stability issue (#2817)

It turns out "simple_stmt" isn't that simple: it can contain multiple
statements separated by semicolons. Invisible parenthesis logic for
arithmetic expressions only looked at the first child of simple_stmt.
This causes instability in the presence of semicolons, since the next
run through the statement following the semicolon will be the first
child of another simple_stmt.

I believe this along with #2572 fix the known stability issues.
CHANGES.md
src/black/linegen.py
src/black/nodes.py