summaryrefslogtreecommitdiff
path: root/lib/input
diff options
context:
space:
mode:
Diffstat (limited to 'lib/input')
-rw-r--r--lib/input/mysqlBindings.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/input/mysqlBindings.h b/lib/input/mysqlBindings.h
index 3d1ad7f..36ef2bf 100644
--- a/lib/input/mysqlBindings.h
+++ b/lib/input/mysqlBindings.h
@@ -159,11 +159,15 @@ namespace MyGrate::Input {
private:
operator Date() const
{
- return Date(buf.year, buf.month, buf.day);
+ return Date(boost::numeric_cast<decltype(Date::year)>(buf.year),
+ boost::numeric_cast<decltype(Date::month)>(buf.month),
+ boost::numeric_cast<decltype(Date::day)>(buf.day));
}
operator Time() const
{
- return Time(buf.hour, buf.minute, buf.second);
+ return Time(boost::numeric_cast<decltype(Time::hour)>(buf.hour),
+ boost::numeric_cast<decltype(Time::minute)>(buf.minute),
+ boost::numeric_cast<decltype(Time::second)>(buf.second));
}
operator DateTime() const
{