aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/qt/date-time/pgsql/qdate-traits.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/qt/date-time/pgsql/qdate-traits.hxx b/odb/qt/date-time/pgsql/qdate-traits.hxx
index 2e19da0..8f15b64 100644
--- a/odb/qt/date-time/pgsql/qdate-traits.hxx
+++ b/odb/qt/date-time/pgsql/qdate-traits.hxx
@@ -53,7 +53,7 @@ namespace odb
const QDate pg_epoch (2000, 1, 1);
// In Qt5 daysTo() returns qint64.
//
- i = endian_traits::hton<int> (pg_epoch.daysTo (v));
+ i = endian_traits::hton (static_cast<int> (pg_epoch.daysTo (v)));
}
}
};