summary refs log tree commit diff
path: root/crypto/src/math/ec
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-02-07 18:11:44 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-02-07 18:11:44 +0700
commit5f624c423de8d76ad7ac240f28476a21a41d5261 (patch)
tree8af555a2e6767f19f548b5367c59a7877ed6b7e7 /crypto/src/math/ec
parentFix dodgy character in curve seed (diff)
downloadBouncyCastle.NET-ed25519-5f624c423de8d76ad7ac240f28476a21a41d5261.tar.xz
Fix casts to satisfy .NET 1.1
Diffstat (limited to 'crypto/src/math/ec')
-rw-r--r--crypto/src/math/ec/ECAlgorithms.cs4
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) {