aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1_tm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asn1_tm.cpp')
-rw-r--r--src/asn1_tm.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/asn1_tm.cpp b/src/asn1_tm.cpp
index f91196c9d..598d99df0 100644
--- a/src/asn1_tm.cpp
+++ b/src/asn1_tm.cpp
@@ -20,11 +20,7 @@ namespace {
*************************************************/
std::tm get_tm(u64bit timer)
{
- std::time_t time_val = (std::time_t)timer;
-
- if((u64bit)time_val != timer)
- throw Encoding_Error("X509_Time: time_t overflow with time value " +
- to_string(timer));
+ std::time_t time_val = static_cast<std::time_t>(timer);
std::tm* tm_p = std::gmtime(&time_val);
if(tm_p == 0)