diff --git a/Source/Core/Core/CPUThreadConfigCallback.h b/Source/Core/Core/CPUThreadConfigCallback.h index 03070f76c7d..aa1d379a47b 100644 --- a/Source/Core/Core/CPUThreadConfigCallback.h +++ b/Source/Core/Core/CPUThreadConfigCallback.h @@ -3,6 +3,8 @@ #pragma once +#include + #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::max(); bool operator==(const ConfigChangedCallbackID&) const = default; };