summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()) };
}