diff options
author | Jack Lloyd <[email protected]> | 2018-12-10 10:43:19 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-10 10:43:19 -0500 |
commit | efd1d99a291738786e353e28598e86e5dd08803d (patch) | |
tree | cb8c5e59708ddd273098af8dc40193cbf8953959 /src/tests/unit_x509.cpp | |
parent | 965a8bfa31553e439898100913150ea4df1f734e (diff) |
Fix some MSVC warnings
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r-- | src/tests/unit_x509.cpp | 2 |
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()); } |