diff options
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/math/ec/ECAlgorithms.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/math/ec/ECAlgorithms.cs b/crypto/src/math/ec/ECAlgorithms.cs index b0b75e908..c44df0beb 100644 --- a/crypto/src/math/ec/ECAlgorithms.cs +++ b/crypto/src/math/ec/ECAlgorithms.cs @@ -165,8 +165,8 @@ namespace Org.BouncyCastle.Math.EC for (int i = len - 1; i >= 0; --i) { - int wiP = i < wnafP.Length ? (sbyte)wnafP[i] : 0; - int wiQ = i < wnafQ.Length ? (sbyte)wnafQ[i] : 0; + int wiP = i < wnafP.Length ? (int)(sbyte)wnafP[i] : 0; + int wiQ = i < wnafQ.Length ? (int)(sbyte)wnafQ[i] : 0; if ((wiP | wiQ) == 0) { |