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 8251119be4
commit 3d7ef76b75
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; }