Skip to content

Commit f65cbea

Browse files
authored
dense_mlpoly.rs: Fix bound functions (#73)
1 parent f36b265 commit f65cbea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dense_mlpoly.rs

+2
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ impl DensePolynomial {
216216
for i in 0..n {
217217
self.Z[i] = self.Z[i] + r * (self.Z[i + n] - self.Z[i]);
218218
}
219+
self.Z.truncate(n); // Resize the vector Z to the new length
219220
self.num_vars -= 1;
220221
self.len = n;
221222
}
@@ -225,6 +226,7 @@ impl DensePolynomial {
225226
for i in 0..n {
226227
self.Z[i] = self.Z[2 * i] + r * (self.Z[2 * i + 1] - self.Z[2 * i]);
227228
}
229+
self.Z.truncate(n); // Resize the vector Z to the new length
228230
self.num_vars -= 1;
229231
self.len = n;
230232
}

0 commit comments

Comments
 (0)