From bd368f5d3a488d490ba314663ba1fa680f5b715f Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 1 Jun 2023 12:48:35 +0300 Subject: [PATCH] win: Fix ambiguous max() usage (fixes #3524, see #3422) --- include/internal/cef_types_wrappers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/cef_types_wrappers.h b/include/internal/cef_types_wrappers.h index e410af42e..53e07cd48 100644 --- a/include/internal/cef_types_wrappers.h +++ b/include/internal/cef_types_wrappers.h @@ -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::max(), - std::numeric_limits::max()); + return CefRange((std::numeric_limits::max)(), + (std::numeric_limits::max)()); } void Set(int from_val, int to_val) { from = from_val, to = to_val; }