Skip to content

Commit

Permalink
fix add_mul for the hacky branch
Browse files Browse the repository at this point in the history
  • Loading branch information
guipublic committed May 12, 2023
1 parent f5f8cd3 commit b7c1561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/noirc_evaluator/src/ssa/acir_gen/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ pub(crate) fn to_radix_base(
.expect("Constant expressions should already be simplified");
let y = subtract(lhs, FieldElement::one(), &Expression::from(a));
let radix_f = FieldElement::from(radix as i128);
let y = Expression::default().add_mul(FieldElement::one() / radix_f, &y);
let y = add(&Expression::default(), FieldElement::one() / radix_f, &y);
let mut b = to_radix_base(&y, radix, limb_size - 1, endianness, evaluator);
match endianness {
Endian::Little => b.insert(0, a),
Expand Down

0 comments on commit b7c1561

Please sign in to comment.