Skip to content

Commit 60db1b0

Browse files
committed
simplified cast
1 parent fa23dc2 commit 60db1b0

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/org/bouncycastle/pqc/crypto/crystals/dilithium

1 file changed

+1
-1
lines changed

core/src/main/java/org/bouncycastle/pqc/crypto/crystals/dilithium/Ntt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static int[] ntt(int[] a)
5454
zeta = nttZetas[++k];
5555
for (j = start; j < start + len; ++j)
5656
{
57-
t = Reduce.montgomeryReduce((long)((long)zeta * (long)r[j + len]));
57+
t = Reduce.montgomeryReduce(((long)zeta * (long)r[j + len]));
5858
r[j + len] = r[j] - t;
5959
r[j] = r[j] + t;
6060
}

0 commit comments

Comments
 (0)