summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/CPUThreadConfigCallback.h4
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;
};