aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/qt/date-time/pgsql/qdate-traits.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/qt/date-time/pgsql/qdate-traits.hxx b/odb/qt/date-time/pgsql/qdate-traits.hxx
index c42c38b..ef8514e 100644
--- a/odb/qt/date-time/pgsql/qdate-traits.hxx
+++ b/odb/qt/date-time/pgsql/qdate-traits.hxx
@@ -51,7 +51,9 @@ namespace odb
{
is_null = false;
const QDate pg_epoch (2000, 1, 1);
- i = endian_traits::hton (pg_epoch.daysTo (v));
+ // In Qt5 daysTo() returns qint64.
+ //
+ i = endian_traits::hton<int> (pg_epoch.daysTo (v));
}
}
};