mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-10 16:01:28 +01:00
fix(fp-cmp): use enforce unchecked in enforce unchecked function
This commit is contained in:
committed by
Pratyush Mishra
parent
cc534494ec
commit
ea2adb4f7f
@@ -27,7 +27,7 @@ impl<F: PrimeField> FpGadget<F> {
|
|||||||
ordering,
|
ordering,
|
||||||
should_also_check_equality,
|
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
|
/// This function enforces the ordering between `self` and `b`. The
|
||||||
@@ -49,7 +49,7 @@ impl<F: PrimeField> FpGadget<F> {
|
|||||||
ordering,
|
ordering,
|
||||||
should_also_check_equality,
|
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
|
/// This function checks the ordering between `self` and `b`. It outputs a
|
||||||
|
|||||||
Reference in New Issue
Block a user