changed type form double long to long long

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-11-05 21:41:10 +02:00
parent 220a1de99a
commit 710a48fcaf
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -113,7 +113,7 @@ class PixmapCache final : public QObject {
m_last_cache_miss_by_eviciton = now; m_last_cache_miss_by_eviciton = now;
if (m_consecutive_fast_evicitons >= m_consecutive_fast_evicitons_threshold) { if (m_consecutive_fast_evicitons >= m_consecutive_fast_evicitons_threshold) {
// double the cache size // double the cache size
auto newSize = _cacheLimit() * 2.L; auto newSize = _cacheLimit() * 2ll;
if (newSize >= std::numeric_limits<int>::max()) { // double it until you overflow :D if (newSize >= std::numeric_limits<int>::max()) { // double it until you overflow :D
newSize = std::numeric_limits<int>::max(); newSize = std::numeric_limits<int>::max();
qDebug() << m_consecutive_fast_evicitons qDebug() << m_consecutive_fast_evicitons