summary refs log tree commit diff
path: root/crypto/src/cms/CMSCompressedDataStreamGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/CMSCompressedDataStreamGenerator.cs')
-rw-r--r--crypto/src/cms/CMSCompressedDataStreamGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/CMSCompressedDataStreamGenerator.cs b/crypto/src/cms/CMSCompressedDataStreamGenerator.cs
index f992a8269..0e320aa9f 100644
--- a/crypto/src/cms/CMSCompressedDataStreamGenerator.cs
+++ b/crypto/src/cms/CMSCompressedDataStreamGenerator.cs
@@ -75,7 +75,7 @@ namespace Org.BouncyCastle.Cms
 				sGen.GetRawOutputStream(), 0, true);
 
 			// CMSVersion
-			cGen.AddObject(new DerInteger(0));
+			cGen.AddObject(DerInteger.Zero);
 
 			// CompressionAlgorithmIdentifier
 			cGen.AddObject(new AlgorithmIdentifier(CmsObjectIdentifiers.ZlibCompress));