Skip to content

Commit

Permalink
fix the match branch problem mentioned in issue dusk-network#414
Browse files Browse the repository at this point in the history
  • Loading branch information
3for committed Mar 2, 2021
1 parent fe395af commit d4439a5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/constraint_system/logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,7 @@ impl StandardComposer {
// Get variables pointing to the previous accumulated values.
let var_a = self.add_input(left_accumulator);
let var_b = self.add_input(right_accumulator);
// On the last row of the program memory, we need to pad the
// output wire with a zero since we started to include it's
// accumulators one gate before the other wire ones.
let var_c = match i == num_quads {
true => self.zero_var,
false => self.add_input(prod_quad_fr),
};
let var_c = self.add_input(prod_quad_fr);
let var_4 = self.add_input(out_accumulator);
// Add the variables to the variable map linking them to it's
// corresponding gate index.
Expand Down

0 comments on commit d4439a5

Please sign in to comment.