Skip to content

gh-100687: Fix assertion failure in x_add() for zero operands from k_mul() - #162310

Open
eendebakpt wants to merge 1 commit into
python:mainfrom
eendebakpt:longobject-xadd-zero-operands
Open

eendebakpt wants to merge 1 commit into
python:mainfrom
eendebakpt:longobject-xadd-zero-operands

Conversation

@eendebakpt

@eendebakpt eendebakpt commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

k_lopsided_mul() passes unnormalized slices of the larger operand to k_mul(). If such a slice has only zero digits, both halves of the split are zero and x_add() was called with two zero operands.

@StanFromIreland

k_lopsided_mul() passes unnormalized slices of the larger operand to
k_mul(). If such a slice has only zero digits, both halves of the split
are zero and x_add() was called with two zero operands.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant