aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-07 08:25:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-07 08:25:25 +0200
commit31ab17b60b7781a94b4d12681112f510a6a825bc (patch)
tree8c5c91eeeb807fdc7b6d006bb657fda26e36aba8
parent39e0e6ed3c79852a647bbf94d224d300fcb2c270 (diff)
Explicitly specify hton type (Qt5 compatibility)
-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));
}
}
};