Repository navigation
Commit 450c83f
Fix assertion failure in x_add() for zero operands from k_mul()
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>1 parent b09a7e9 commit 450c83f
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1748 | 1748 | | |
1749 | 1749 | | |
1750 | 1750 | | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
1751 | 1763 | | |
1752 | 1764 | | |
1753 | 1765 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4205 | 4205 | | |
4206 | 4206 | | |
4207 | 4207 | | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
4208 | 4214 | | |
4209 | 4215 | | |
4210 | 4216 | | |
| |||
0 commit comments