Skip to content

Commit

Permalink
ICU-22861 std::max deduced conflicting types in unifiedcache.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EstherWx authored and eggrobin committed Aug 16, 2024
1 parent f4a0463 commit 1c312f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icu4c/source/common/unifiedcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1c312f7

Please sign in to comment.