Skip to content

Commit 267c1c6

Browse files
committed
simplified cast.
1 parent 60db1b0 commit 267c1c6

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/Reduce.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ static int montgomeryReduce(long a)
66
{
77
int t;
88
t = (int)(a * DilithiumEngine.DilithiumQinv);
9-
t = (int)((a - (long)((long)t * DilithiumEngine.DilithiumQ)) >>> 32);
9+
t = (int)((a - ((long)t) * DilithiumEngine.DilithiumQ) >>> 32);
1010
// System.out.printf("%d, ", t);
1111
return t;
1212

0 commit comments

Comments
 (0)