From 5f624c423de8d76ad7ac240f28476a21a41d5261 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 7 Feb 2014 18:11:44 +0700 Subject: Fix casts to satisfy .NET 1.1 --- crypto/src/math/ec/ECAlgorithms.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src') 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) { -- cgit 1.4.1