Browse Source

fix(fp-cmp): use enforce unchecked in enforce unchecked function

master
Georgios Konstantopoulos 4 years ago
committed by Pratyush Mishra
parent
commit
ea2adb4f7f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      r1cs-std/src/fields/fp/cmp.rs

+ 2
- 2
r1cs-std/src/fields/fp/cmp.rs

@ -27,7 +27,7 @@ impl FpGadget {
ordering,
should_also_check_equality,
)?;
Self::enforce_smaller_than_unchecked(cs.ns(|| "enforce smaller than"), &left, &right)
Self::enforce_smaller_than(cs.ns(|| "enforce smaller than"), &left, &right)
}
/// This function enforces the ordering between `self` and `b`. The
@ -49,7 +49,7 @@ impl FpGadget {
ordering,
should_also_check_equality,
)?;
Self::enforce_smaller_than(cs.ns(|| "enforce smaller than"), &left, &right)
Self::enforce_smaller_than_unchecked(cs.ns(|| "enforce smaller than"), &left, &right)
}
/// This function checks the ordering between `self` and `b`. It outputs a

Loading…
Cancel
Save