Skip to content

fix(core): correct carry array size in Add5Operation#462

Merged
eigmax merged 1 commit intoProjectZKM:mainfrom
eeemmmmmm:fix/add5-carry-array-size
Mar 2, 2026
Merged

fix(core): correct carry array size in Add5Operation#462
eigmax merged 1 commit intoProjectZKM:mainfrom
eeemmmmmm:fix/add5-carry-array-size

Conversation

@eeemmmmmm
Copy link
Copy Markdown
Contributor

The carry array in add5.rs was declared with 5 elements, but only 4 are ever used. The loop iterates over WORD_SIZE (4), so carry[4] is never accessed. This matches how add4.rs correctly uses a 4-element array.

@eigmax eigmax merged commit b43f15d into ProjectZKM:main Mar 2, 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