From 22a68f8dcede36271baf5fb58b4a799d88cec58a 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 e8917a9e2639b..d5ff69ccf3fd7 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)