From 8bab62b83d73ae8e9f8d26533cbfb9c23118422b Mon Sep 17 00:00:00 2001 From: Nicholas Ward Date: Fri, 11 Feb 2022 09:06:54 -0800 Subject: [PATCH] fix --- plonky2/src/gadgets/curve_windowed_mul.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plonky2/src/gadgets/curve_windowed_mul.rs b/plonky2/src/gadgets/curve_windowed_mul.rs index 0479e142..9abc4ea3 100644 --- a/plonky2/src/gadgets/curve_windowed_mul.rs +++ b/plonky2/src/gadgets/curve_windowed_mul.rs @@ -20,8 +20,7 @@ impl, const D: usize> CircuitBuilder { &mut self, p: &AffinePointTarget, ) -> Vec> { - let mut multiples = Vec::new(); - multiples.push(self.constant_affine_point(C::GENERATOR_AFFINE)); + let mut multiples = vec![self.constant_affine_point(C::GENERATOR_AFFINE)]; let mut cur = p.clone(); for _pow in 0..WINDOW_SIZE { for existing in multiples.clone() {