From bd93c09e385dc4bf476dcbbd7ed0ade8d4dd428d Mon Sep 17 00:00:00 2001 From: Simonx22 Date: Sat, 8 Nov 2025 22:44:58 -0500 Subject: [PATCH] CPUThreadConfigCallback: Use maximum value of size_t instead of -1 as default value ConfigChangedCallbackID Co-Authored-By: OatmealDome --- Source/Core/Core/CPUThreadConfigCallback.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; };