From efd1d99a291738786e353e28598e86e5dd08803d Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 10 Dec 2018 10:43:19 -0500 Subject: Fix some MSVC warnings --- src/tests/unit_x509.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/unit_x509.cpp') 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(this_year + y), m, d, 0, 0, 0); return Botan::X509_Time(t.to_std_timepoint()); } -- cgit v1.2.3