Skip to content

Commit

Permalink
[image] ImageCache: use signed type for missing capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
mugulmd committed May 30, 2023
1 parent 7818837 commit 2062ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aliceVision/image/ImageCache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ std::shared_ptr<Image<TPix>> 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
Expand Down

0 comments on commit 2062ca7

Please sign in to comment.