From e8dbcc31aa4a947bdf75fa38fb9727ca6f77c6b7 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Mon, 9 Dec 2024 21:46:59 +0000 Subject: [PATCH] SaveState: Fix comparison warning --- pcsx2/SaveState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)