From 714dba3af3c39c4381eb4349b08bb2bd03762022 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 28 May 2018 10:35:38 +0200 Subject: Fixed build with extra warnings. --- common/typeindex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/typeindex.cpp b/common/typeindex.cpp index 589b770..a111134 100644 --- a/common/typeindex.cpp +++ b/common/typeindex.cpp @@ -60,7 +60,7 @@ static QByteArray toSortableByteArrayImpl(const QDateTime &date) if (!date.isValid()) { return QByteArray::number(std::numeric_limits::max()); } - static unsigned int uint_num_digits = std::log10(std::numeric_limits::max()) + 1; + static unsigned int uint_num_digits = (unsigned int)std::log10(std::numeric_limits::max()) + 1; return QByteArray::number(std::numeric_limits::max() - date.toTime_t()).rightJustified(uint_num_digits, '0'); } -- cgit v1.2.3