From f67691d5641fac48a6d4e52968195a62f45f7d4d Mon Sep 17 00:00:00 2001 From: Simonx22 Date: Fri, 7 Nov 2025 23:13:35 -0500 Subject: [PATCH] Config: Use maximum value of size_t instead of -1 as default value in ConfigChangedCallbackID Co-authored-by: OatmealDome --- Source/Core/Common/Config/Config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Config/Config.h b/Source/Core/Common/Config/Config.h index e3e3d3df3b5..1e0b32551b1 100644 --- a/Source/Core/Common/Config/Config.h +++ b/Source/Core/Common/Config/Config.h @@ -4,6 +4,7 @@ #pragma once #include +#include #include #include #include @@ -17,7 +18,7 @@ namespace Config { struct ConfigChangedCallbackID { - size_t id = -1; + size_t id = std::numeric_limits::max(); bool operator==(const ConfigChangedCallbackID&) const = default; };