Fixed comparation warning

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-11-06 11:24:19 +02:00
parent 670e91cb60
commit ca226d2ab5
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -101,7 +101,7 @@ class PixmapCache final : public QObject {
*/ */
bool _markCacheMissByEviciton() bool _markCacheMissByEviciton()
{ {
static constexpr int maxInt = std::numeric_limits<int>::max(); static constexpr uint maxInt = static_cast<uint>(std::numeric_limits<int>::max());
static constexpr uint step = 10240; static constexpr uint step = 10240;
static constexpr int oneSecond = 1000; static constexpr int oneSecond = 1000;
@ -123,8 +123,8 @@ class PixmapCache final : public QObject {
qDebug() << m_consecutive_fast_evicitons qDebug() << m_consecutive_fast_evicitons
<< tr("pixmap cache misses by eviction happened too fast, doing nothing as the cache size reached it's limit"); << tr("pixmap cache misses by eviction happened too fast, doing nothing as the cache size reached it's limit");
} else { } else {
qDebug() << m_consecutive_fast_evicitons << tr("pixmap cache misses by eviction happened too fast, doubling cache size to") qDebug() << m_consecutive_fast_evicitons
<< static_cast<int>(newSize); << tr("pixmap cache misses by eviction happened too fast, increasing cache size to") << static_cast<int>(newSize);
} }
_setCacheLimit(static_cast<int>(newSize)); _setCacheLimit(static_cast<int>(newSize));
m_consecutive_fast_evicitons = 0; m_consecutive_fast_evicitons = 0;