diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/typeindex.cpp | 2 |
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 | ||