2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tsp/GenTimeAccuracy.cs b/crypto/src/tsp/GenTimeAccuracy.cs
index 8a2f29989..400bf6f9e 100644
--- a/crypto/src/tsp/GenTimeAccuracy.cs
+++ b/crypto/src/tsp/GenTimeAccuracy.cs
@@ -22,7 +22,7 @@ namespace Org.BouncyCastle.Tsp
private int GetTimeComponent(
DerInteger time)
{
- return time == null ? 0 : time.Value.IntValue;
+ return time == null ? 0 : time.IntValueExact;
}
public override string ToString()
diff --git a/crypto/src/tsp/TimeStampRequest.cs b/crypto/src/tsp/TimeStampRequest.cs
index 0b41adef7..f5c6a09e6 100644
--- a/crypto/src/tsp/TimeStampRequest.cs
+++ b/crypto/src/tsp/TimeStampRequest.cs
@@ -72,7 +72,7 @@ namespace Org.BouncyCastle.Tsp
public int Version
{
- get { return req.Version.Value.IntValue; }
+ get { return req.Version.IntValueExact; }
}
public string MessageImprintAlgOid
|