From 0adfd0489e2ea55522ad6bd9ba1b1afe238cdcbe Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 18 Aug 2023 10:13:15 +0700 Subject: Refactoring in Math.EC --- crypto/src/math/ec/rfc8032/Wnaf.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/math/ec/rfc8032/Wnaf.cs') diff --git a/crypto/src/math/ec/rfc8032/Wnaf.cs b/crypto/src/math/ec/rfc8032/Wnaf.cs index 88319f405..209934031 100644 --- a/crypto/src/math/ec/rfc8032/Wnaf.cs +++ b/crypto/src/math/ec/rfc8032/Wnaf.cs @@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032 { int word16 = (int)(word >> j); - int skip = Integers.NumberOfTrailingZeros((sign ^ word16) | 0x00010000); + int skip = Integers.NumberOfTrailingZeros((sign ^ word16) | (1 << 16)); if (skip > 0) { j += skip; -- cgit 1.4.1