win: Fix ambiguous max() usage (fixes #3524, see #3422)

This commit is contained in:
Marshall Greenblatt 2023-06-01 12:48:35 +03:00
parent 87a04aba03
commit bd368f5d3a
1 changed files with 2 additions and 2 deletions

View File

@ -220,8 +220,8 @@ class CefRange : public cef_range_t {
CefRange(uint32_t from, uint32_t to) : cef_range_t{from, to} {}
static CefRange InvalidRange() {
return CefRange(std::numeric_limits<uint32_t>::max(),
std::numeric_limits<uint32_t>::max());
return CefRange((std::numeric_limits<uint32_t>::max)(),
(std::numeric_limits<uint32_t>::max)());
}
void Set(int from_val, int to_val) { from = from_val, to = to_val; }