diff --git a/src/multiexp.rs b/src/multiexp.rs index dca0fc10..7889a6fe 100644 --- a/src/multiexp.rs +++ b/src/multiexp.rs @@ -71,7 +71,7 @@ impl Source for (Arc>, usize) { } fn skip(&mut self, amt: usize) -> Result<(), SynthesisError> { - if self.0.len() <= self.1 { + if self.0.len() < self.1 + amt { return Err(io::Error::new( io::ErrorKind::UnexpectedEof, "expected more bases from source",