Skip to content

Commit

Permalink
fix: no panic for degree missing
Browse files Browse the repository at this point in the history
  • Loading branch information
eigmax committed Aug 15, 2023
1 parent be33b49 commit 5e85c33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions starky/src/fft_p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ pub fn _fft(
}
(bin, bout) = (bout, bin);

if n_pols <= 0 {
return;
}
rayon::scope(|_s| {
for i in (0..nbits).step_by(blockbits) {
let s_inc = min(blockbits, nbits - i);
Expand Down

0 comments on commit 5e85c33

Please sign in to comment.