diff --git a/pcsx2/SaveState.cpp b/pcsx2/SaveState.cpp index e8917a9e26..d5ff69ccf3 100644 --- a/pcsx2/SaveState.cpp +++ b/pcsx2/SaveState.cpp @@ -315,7 +315,7 @@ memLoadingState::memLoadingState(const VmStateBuffer& load_from) // Loading of state data from a memory buffer... void memLoadingState::FreezeMem( void* data, int size ) { - if (m_idx + size > m_memory.size()) + if (static_cast(m_idx + size) > m_memory.size()) m_error = true; if (m_error)