Skip to content

Commit 8bd254a

Browse files
committed
fix"
1 parent 9058ca1 commit 8bd254a

File tree

1 file changed

+2
-5
lines changed
  • plonky2x/core/src/frontend/ops

1 file changed

+2
-5
lines changed

plonky2x/core/src/frontend/ops/math.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<L: PlonkParameters<D>, const D: usize> CircuitBuilder<L, D> {
171171
/// The less than operation (<).
172172
pub fn lt<Lhs, Rhs>(&mut self, lhs: Lhs, rhs: Rhs) -> BoolVariable
173173
where
174-
Lhs: LessThanOrEqual<L, D, Lhs>,
174+
Rhs: LessThanOrEqual<L, D, Lhs>,
175175
{
176176
let lte = rhs.lte(lhs, self);
177177
self.not(lte)
@@ -180,16 +180,14 @@ impl<L: PlonkParameters<D>, const D: usize> CircuitBuilder<L, D> {
180180
/// The greater than operation (>).
181181
pub fn gt<Lhs, Rhs>(&mut self, lhs: Lhs, rhs: Rhs) -> BoolVariable
182182
where
183-
Lhs: Sub<L, D, Lhs, Output = Rhs> + One<L, D>,
184-
Rhs: LessThanOrEqual<L, D, Rhs>,
183+
Lhs: LessThanOrEqual<L, D, Rhs>,
185184
{
186185
self.lt(rhs, lhs)
187186
}
188187

189188
/// The greater than or equal to operation (>=).
190189
pub fn gte<Lhs, Rhs>(&mut self, lhs: Lhs, rhs: Rhs) -> BoolVariable
191190
where
192-
Lhs: Sub<L, D, Lhs, Output = Rhs> + One<L, D>,
193191
Rhs: LessThanOrEqual<L, D, Lhs>,
194192
{
195193
self.lte(rhs, lhs)
@@ -219,7 +217,6 @@ impl<L: PlonkParameters<D>, const D: usize> LessThanOrEqual<L, D> for Variable {
219217
generator.output
220218
}
221219
}
222-
223220
mod tests {
224221
#[allow(unused_imports)]
225222
use crate::prelude::{BoolVariable, DefaultBuilder, U32Variable};

0 commit comments

Comments
 (0)