mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-11-27 03:45:39 +00:00
Merge pull request #14091 from Simonx22/ConfigChangedCallbackID-size_t-fix
CPUThreadConfigCallback: Use maximum value of size_t instead of -1 as default value ConfigChangedCallbackID
This commit is contained in:
commit
2b7b9f2eb6
@ -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;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user