summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-30 14:10:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-30 14:10:51 +0000
commit215969efeb81582fd040ae5d42452431def9d1c1 (patch)
tree2136e65bcfb535697fb8ba0eb10cd8d9bee9c063
parentCompatibility with libdbpp-*-1 (diff)
downloadp2pvr-215969efeb81582fd040ae5d42452431def9d1c1.tar.bz2
p2pvr-215969efeb81582fd040ae5d42452431def9d1c1.tar.xz
p2pvr-215969efeb81582fd040ae5d42452431def9d1c1.zip
Compatibility with gcc-5.3.0
-rw-r--r--p2pvr/ice/commonHelpers.cpp4
1 files changed, 3 insertions, 1 deletions
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<short, int>(dt.date().year()),
+ boost::numeric_cast<short, int>(dt.date().month()),
+ boost::numeric_cast<short, int>(dt.date().day()),
boost::numeric_cast<short>(dt.time_of_day().hours()),
boost::numeric_cast<short>(dt.time_of_day().minutes()) };
}