Skip to content

Conversation

tomaszmrugalski
Copy link
Member

outBigInt = big.NewInt(0)
}

n.extended = outBigInt.Sub(n.ToBigInt(), b.ToBigInt())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Subtract Method Uses Incorrect Minuend

The Subtract method's extended precision path incorrectly uses the receiver n as the minuend instead of the a parameter. This causes the method to compute n - b instead of the intended a - b, leading to incorrect subtraction results.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants