diff options
| author | Simonx22 <simon@oatmealdome.me> | 2025-11-07 23:13:35 -0500 |
|---|---|---|
| committer | Simonx22 <simon@oatmealdome.me> | 2025-11-08 11:35:31 -0500 |
| commit | f67691d5641fac48a6d4e52968195a62f45f7d4d (patch) | |
| tree | adce074146e4381334bf8c93ae6d2b81f3f24849 /Source/Core/Common/Config | |
| parent | f9b167d8c640b6ab5fa7d5fd4639fa0d34d6603d (diff) | |
Config: Use maximum value of size_t instead of -1 as default value in ConfigChangedCallbackID
Co-authored-by: OatmealDome <julian@oatmealdome.me>
Diffstat (limited to 'Source/Core/Common/Config')
| -rw-r--r-- | Source/Core/Common/Config/Config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/Config/Config.h b/Source/Core/Common/Config/Config.h index e3e3d3df3b..1e0b32551b 100644 --- a/Source/Core/Common/Config/Config.h +++ b/Source/Core/Common/Config/Config.h @@ -4,6 +4,7 @@ #pragma once #include <functional> +#include <limits> #include <map> #include <memory> #include <optional> @@ -17,7 +18,7 @@ namespace Config { struct ConfigChangedCallbackID { - size_t id = -1; + size_t id = std::numeric_limits<size_t>::max(); bool operator==(const ConfigChangedCallbackID&) const = default; }; |
