aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_x509.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-10 10:43:19 -0500
committerJack Lloyd <[email protected]>2018-12-10 10:43:19 -0500
commitefd1d99a291738786e353e28598e86e5dd08803d (patch)
treecb8c5e59708ddd273098af8dc40193cbf8953959 /src/tests/unit_x509.cpp
parent965a8bfa31553e439898100913150ea4df1f734e (diff)
Fix some MSVC warnings
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r--src/tests/unit_x509.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/unit_x509.cpp b/src/tests/unit_x509.cpp
index b0a5da23a..03f5d928c 100644
--- a/src/tests/unit_x509.cpp
+++ b/src/tests/unit_x509.cpp
@@ -33,7 +33,7 @@ Botan::X509_Time from_date(const int y, const int m, const int d)
{
const size_t this_year = Botan::calendar_value(std::chrono::system_clock::now()).get_year();
- Botan::calendar_point t(this_year + y, m, d, 0, 0, 0);
+ Botan::calendar_point t(static_cast<uint32_t>(this_year + y), m, d, 0, 0, 0);
return Botan::X509_Time(t.to_std_timepoint());
}