Skip to content

Commit

Permalink
Negate the expression of for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
autquis authored Jan 18, 2025
1 parent 0d832bf commit ba9c6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ntt/ntt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl<F: FftField> NttEngine<F> {
Self::new(1 << F::TWO_ADICITY, F::TWO_ADIC_ROOT_OF_UNITY)
} else {
let mut generator = F::TWO_ADIC_ROOT_OF_UNITY;
for _ in 0..(63 - F::TWO_ADICITY) {
for _ in 0..(F::TWO_ADICITY - 63) {
generator = generator.square();
}
Self::new(1 << 63, generator)
Expand Down

0 comments on commit ba9c6d1

Please sign in to comment.