summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-28 10:35:38 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-28 10:35:38 +0200
commit714dba3af3c39c4381eb4349b08bb2bd03762022 (patch)
treec8ae484fceb548def7b9c3ad177eef0aa0e17a38 /common
parentf400cee1d5896577c22626d0cf50478057989857 (diff)
downloadsink-714dba3af3c39c4381eb4349b08bb2bd03762022.tar.gz
sink-714dba3af3c39c4381eb4349b08bb2bd03762022.zip
Fixed build with extra warnings.
Diffstat (limited to 'common')
-rw-r--r--common/typeindex.cpp2
1 files changed, 1 insertions, 1 deletions
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)
60 if (!date.isValid()) { 60 if (!date.isValid()) {
61 return QByteArray::number(std::numeric_limits<unsigned int>::max()); 61 return QByteArray::number(std::numeric_limits<unsigned int>::max());
62 } 62 }
63 static unsigned int uint_num_digits = std::log10(std::numeric_limits<unsigned int>::max()) + 1; 63 static unsigned int uint_num_digits = (unsigned int)std::log10(std::numeric_limits<unsigned int>::max()) + 1;
64 return QByteArray::number(std::numeric_limits<unsigned int>::max() - date.toTime_t()).rightJustified(uint_num_digits, '0'); 64 return QByteArray::number(std::numeric_limits<unsigned int>::max() - date.toTime_t()).rightJustified(uint_num_digits, '0');
65} 65}
66 66