Fix integer sign difference comparison warnings

This commit is contained in:
Pokechu22 committed 2022-02-13 14:38:59 -08:00
1 parent 5f9e04be1d
commit 50d9349926
3 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -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;