ICU-22861 std::max deduced conflicting types in unifiedcache.cpp

This commit is contained in:
Esther Wang 2024-08-15 18:15:27 +08:00 committed by Robin Leroy
parent f4a04631cd
commit 1c312f7caa

View file

@ -269,7 +269,7 @@ int32_t UnifiedCache::_computeCountOfItemsToEvict() const {
int32_t unusedLimitByPercentage = fNumValuesInUse * fMaxPercentageOfInUse / 100;
int32_t unusedLimit = std::max(unusedLimitByPercentage, fMaxUnused);
int32_t countOfItemsToEvict = std::max(0, evictableItems - unusedLimit);
int32_t countOfItemsToEvict = std::max<int32_t>(0, evictableItems - unusedLimit);
return countOfItemsToEvict;
}