mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-02-20 05:43:11 +00:00
fix
This commit is contained in:
parent
4e736b63b8
commit
ee9bfb0822
@ -290,10 +290,12 @@ where
|
||||
// Run add function.
|
||||
interpreter.run()?;
|
||||
|
||||
// Determine actual sum.
|
||||
// Determine actual sum, appending the final carry if nonzero.
|
||||
let carry_limb = interpreter.stack()[0];
|
||||
let mut new_memory = interpreter.get_kernel_general_memory();
|
||||
new_memory[len] = carry_limb;
|
||||
if carry_limb > 0.into() {
|
||||
new_memory[len] = carry_limb;
|
||||
}
|
||||
let actual_sum: Vec<_> = new_memory[..expected_sum.len()].into();
|
||||
|
||||
// Compare.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user