From 2062ca79ccad69d220dd01dc798c820e5daa3565 Mon Sep 17 00:00:00 2001 From: mugulmd Date: Tue, 25 Apr 2023 08:41:48 -0700 Subject: [PATCH] [image] ImageCache: use signed type for missing capacity --- src/aliceVision/image/ImageCache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliceVision/image/ImageCache.hpp b/src/aliceVision/image/ImageCache.hpp index 460c8eb830..98fd6c7d01 100644 --- a/src/aliceVision/image/ImageCache.hpp +++ b/src/aliceVision/image/ImageCache.hpp @@ -335,7 +335,7 @@ std::shared_ptr> ImageCache::get(const std::string& filename, int do } // retrieve missing capacity - unsigned long long int missingCapacity = memSize + _info.contentSize - _info.capacity; + long long int missingCapacity = memSize + _info.contentSize - _info.capacity; // find unused image with size bigger than missing capacity // remove it and add image to cache