diff options
| author | Simonx22 <simon@oatmealdome.me> | 2025-11-08 22:44:58 -0500 |
|---|---|---|
| committer | Simonx22 <simon@oatmealdome.me> | 2025-11-08 23:23:33 -0500 |
| commit | bd93c09e385dc4bf476dcbbd7ed0ade8d4dd428d (patch) | |
| tree | 6023a6fddcff1d724d9241f3d1a200614aa3c097 | |
| parent | 4f849ec8273abfd8290b565264cfe7e422d4961f (diff) | |
CPUThreadConfigCallback: Use maximum value of size_t instead of -1 as default value ConfigChangedCallbackID
Co-Authored-By: OatmealDome <OatmealDome@users.noreply.github.com>
| -rw-r--r-- | Source/Core/Core/CPUThreadConfigCallback.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/Core/CPUThreadConfigCallback.h b/Source/Core/Core/CPUThreadConfigCallback.h index 03070f76c7..aa1d379a47 100644 --- a/Source/Core/Core/CPUThreadConfigCallback.h +++ b/Source/Core/Core/CPUThreadConfigCallback.h @@ -3,6 +3,8 @@ #pragma once +#include <limits> + #include "Common/Config/Config.h" // This file lets you register callbacks like in Common/Config/Config.h, with the difference that @@ -13,7 +15,7 @@ namespace CPUThreadConfigCallback { struct ConfigChangedCallbackID { - size_t id = -1; + size_t id = std::numeric_limits<size_t>::max(); bool operator==(const ConfigChangedCallbackID&) const = default; }; |
