Browse Source

Clean up a few loop bounds

master
François Garillot 5 years ago
committed by Pratyush Mishra
parent
commit
ab65b01478
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      r1cs-std/src/fields/mod.rs

+ 1
- 1
r1cs-std/src/fields/mod.rs

@ -460,7 +460,7 @@ mod test {
maxpower: usize, maxpower: usize,
) { ) {
let mut rng = XorShiftRng::seed_from_u64(1231275789u64); let mut rng = XorShiftRng::seed_from_u64(1231275789u64);
for i in 0..(maxpower + 1) {
for i in 0..=maxpower {
let mut a = FE::rand(&mut rng); let mut a = FE::rand(&mut rng);
let mut a_gadget = F::alloc(cs.ns(|| format!("a_gadget_{:?}", i)), || Ok(a)).unwrap(); let mut a_gadget = F::alloc(cs.ns(|| format!("a_gadget_{:?}", i)), || Ok(a)).unwrap();
a_gadget = a_gadget a_gadget = a_gadget

Loading…
Cancel
Save