Changed ssize_t to int to fix windows build error
This commit is contained in:
parent
7a44b43474
commit
04c2bbf594
@ -429,7 +429,7 @@ struct LRUCache
|
||||
}
|
||||
// Now make room still needed for new cache entries
|
||||
size_t newEnts = end - begin;
|
||||
ssize_t spaceNeeded = newEnts - (entries.rend() - validEnd);
|
||||
int spaceNeeded = newEnts - (entries.rend() - validEnd);
|
||||
if (spaceNeeded > 0)
|
||||
{
|
||||
if (maxSize - entries.size() >= static_cast<unsigned>(spaceNeeded))
|
||||
|
Loading…
Reference in New Issue
Block a user