Skip to content

Update nightly to fix multilimb subtraction bug#313

Merged
ashpect merged 1 commit intomainfrom
xr/multilimb-subtraction-fix
Mar 5, 2026
Merged

Update nightly to fix multilimb subtraction bug#313
ashpect merged 1 commit intomainfrom
xr/multilimb-subtraction-fix

Conversation

@xrvdg
Copy link
Collaborator

@xrvdg xrvdg commented Mar 5, 2026

On the old toolchain the carry logic in arkwork's ff (ff/src/biginteger/arithmetic.rs) gets incorrectly compiled under some circumstances.

The error was in one of the later IR stages (after emit llvm from Rust). A borrow (-1) was turned into 2^64-1 in a i128 register and this interfered with the carry logic used by ark ff. On the latest stable this is -1. Given that the IR didn’t change any other way I’m fairly confident this issue has been resolved.

@xrvdg xrvdg requested a review from ashpect March 5, 2026 07:20
@ashpect ashpect merged commit 3323d8f into main Mar 5, 2026
3 checks passed
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