From ab65b0147820e86fa88b6a36da1309bfae922d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Mon, 2 Dec 2019 07:35:13 -0800 Subject: [PATCH] Clean up a few loop bounds --- r1cs-std/src/fields/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r1cs-std/src/fields/mod.rs b/r1cs-std/src/fields/mod.rs index e3204d3..cb789e1 100644 --- a/r1cs-std/src/fields/mod.rs +++ b/r1cs-std/src/fields/mod.rs @@ -460,7 +460,7 @@ mod test { maxpower: usize, ) { 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_gadget = F::alloc(cs.ns(|| format!("a_gadget_{:?}", i)), || Ok(a)).unwrap(); a_gadget = a_gadget