mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix integer sign difference comparison warnings
This commit is contained in:
@ -1031,7 +1031,7 @@ int AddOnStateChangedCallback(StateChangedCallbackFunc callback)
|
||||
|
||||
bool RemoveOnStateChangedCallback(int* handle)
|
||||
{
|
||||
if (handle && *handle >= 0 && s_on_state_changed_callbacks.size() > *handle)
|
||||
if (handle && *handle >= 0 && s_on_state_changed_callbacks.size() > static_cast<size_t>(*handle))
|
||||
{
|
||||
s_on_state_changed_callbacks[*handle] = StateChangedCallbackFunc();
|
||||
*handle = -1;
|
||||
|
Reference in New Issue
Block a user