Skip to content

Commit

Permalink
perf(gadgets): use optimized LC creation in Num
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Sep 22, 2021
1 parent 6c71e3b commit ebeb9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gadgets/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl<E: Engine> From<AllocatedNum<E>> for Num<E> {
fn from(num: AllocatedNum<E>) -> Num<E> {
Num {
value: num.value,
lc: LinearCombination::<E>::zero() + num.variable,
lc: LinearCombination::<E>::from_variable(num.variable),
}
}
}
Expand Down

0 comments on commit ebeb9c5

Please sign in to comment.