changed type form double long to long long
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
220a1de99a
commit
710a48fcaf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user