Skip to content

Commit 7d47ae2

Browse files
committed
fixed cast issue.
1 parent 43ca999 commit 7d47ae2

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

core/src/main/java/org/bouncycastle/pqc/crypto/ntruprime/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ private static int[] getSignedDivMod(int x, int n)
623623
{
624624
int q, r, mask;
625625

626-
int[] div1 = getUnsignedDivMod(toIntExact(0x80000000L + iToUnsignedLong(x)), n);
626+
int[] div1 = getUnsignedDivMod(toIntExact(0x80000000 + iToUnsignedLong(x)), n);
627627
int[] div2 = getUnsignedDivMod(0x80000000, n);
628628

629629
q = toIntExact(iToUnsignedLong(div1[0]) - iToUnsignedLong(div2[0]));

0 commit comments

Comments
 (0)