summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/math/BigInteger.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/math/BigInteger.cs b/crypto/src/math/BigInteger.cs
index 00f8f399d..3b8a820d7 100644
--- a/crypto/src/math/BigInteger.cs
+++ b/crypto/src/math/BigInteger.cs
@@ -1678,11 +1678,11 @@ namespace Org.BouncyCastle.Math
                     bitsCorrect <<= 1;
                 }
                 while (bitsCorrect < pow);
+            }
 
-                if (x.sign < 0)
-                {
-                    x = x.Add(m);
-                }
+            if (x.sign < 0)
+            {
+                x = x.Add(m);
             }
 
             return x;