mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-05-03 08:43:28 +00:00
last fix!
This commit is contained in:
parent
c6a33d0eff
commit
3a2ba05b27
@ -102,7 +102,7 @@ impl<F: Extendable<D>, const D: usize> Gate<F, D> for InsertionGate<F, D> {
|
|||||||
constraints.push(difference * equality_dummy - (F::Extension::ONE - insert_here));
|
constraints.push(difference * equality_dummy - (F::Extension::ONE - insert_here));
|
||||||
constraints.push(insert_here * difference);
|
constraints.push(insert_here * difference);
|
||||||
|
|
||||||
let mut new_item = element_to_insert * insert_here.into() + already_inserted.into();
|
let mut new_item = element_to_insert * insert_here.into();
|
||||||
if r > 0 {
|
if r > 0 {
|
||||||
new_item += list_items[r - 1] * already_inserted.into();
|
new_item += list_items[r - 1] * already_inserted.into();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user