summary refs log tree commit diff
path: root/crypto/src/asn1/x509/GeneralName.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509/GeneralName.cs')
-rw-r--r--crypto/src/asn1/x509/GeneralName.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/x509/GeneralName.cs b/crypto/src/asn1/x509/GeneralName.cs
index 62d650df0..3f5a35d37 100644
--- a/crypto/src/asn1/x509/GeneralName.cs
+++ b/crypto/src/asn1/x509/GeneralName.cs
@@ -337,7 +337,7 @@ namespace Org.BouncyCastle.Asn1.X509
             }
             if (bits > 0)
             {
-                addr[offset] = (byte)(byte.MaxValue >> (8 - bits));
+                addr[offset] = (byte)(0xFF00 >> bits);
             }
         }