Skip to content

Commit

Permalink
Merge pull request privacy-scaling-explorations#81 from han0110/fix/e…
Browse files Browse the repository at this point in the history
…valuation

Negate the subtrahend when processing `Expression::Sum`
  • Loading branch information
han0110 authored Jun 21, 2022
2 parents 1fc6770 + 3966f4e commit f586922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion halo2_proofs/src/plonk/evaluation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ impl<C: CurveAffine> Evaluator<C> {
let result_a = self.add_expression(a);
let result_b = self.add_expression(b_int);
if result_a == ValueSource::Constant(0) {
result_b
self.add_calculation(Calculation::Negate(result_b))
} else if result_b == ValueSource::Constant(0) {
result_a
} else {
Expand Down

0 comments on commit f586922

Please sign in to comment.