From 215969efeb81582fd040ae5d42452431def9d1c1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 30 Dec 2015 14:10:51 +0000 Subject: Compatibility with gcc-5.3.0 --- p2pvr/ice/commonHelpers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/p2pvr/ice/commonHelpers.cpp b/p2pvr/ice/commonHelpers.cpp index 9344438..81d6b2a 100644 --- a/p2pvr/ice/commonHelpers.cpp +++ b/p2pvr/ice/commonHelpers.cpp @@ -20,7 +20,9 @@ namespace boost { Common::DateTime operator*(const boost::posix_time::ptime & dt) { return { - dt.date().year(), dt.date().month(), dt.date().day(), + boost::numeric_cast(dt.date().year()), + boost::numeric_cast(dt.date().month()), + boost::numeric_cast(dt.date().day()), boost::numeric_cast(dt.time_of_day().hours()), boost::numeric_cast(dt.time_of_day().minutes()) }; } -- cgit v1.2.3