Skip to content

Commit

Permalink
fix: cache address
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-sun committed Jan 11, 2025
1 parent 9e62ada commit b83e9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/native/compiler/src/ir/poseidon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl<C: Config> Builder<C> {
builder.set(&state, i, C::F::ZERO);
});

let address = state.ptr().address;
let address = self.eval(state.ptr().address);
let start: Var<_> = self.eval(address);
let end: Var<_> = self.eval(address + C::N::from_canonical_usize(HASH_RATE));
self.iter(array).for_each(|subarray, builder| {
Expand Down

0 comments on commit b83e9ac

Please sign in to comment.