From ba9c6d1495a39e7454c74e602f02290707660b47 Mon Sep 17 00:00:00 2001 From: Hossein Moghaddas Date: Sat, 18 Jan 2025 21:26:14 +0100 Subject: [PATCH] Negate the expression of for loop --- src/ntt/ntt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntt/ntt.rs b/src/ntt/ntt.rs index 059965e..cd3b024 100644 --- a/src/ntt/ntt.rs +++ b/src/ntt/ntt.rs @@ -84,7 +84,7 @@ impl NttEngine { 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)