Changed ssize_t to int to fix windows build error

This commit is contained in:
Robert Osfield 2010-03-12 09:10:12 +00:00
parent 7a44b43474
commit 04c2bbf594

View File

@ -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))