From 31ab17b60b7781a94b4d12681112f510a6a825bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Feb 2013 08:25:25 +0200 Subject: Explicitly specify hton type (Qt5 compatibility) --- odb/qt/date-time/pgsql/qdate-traits.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 (pg_epoch.daysTo (v)); } } }; -- cgit v1.1