SaveState: Fix comparison warning

This commit is contained in:
TheLastRar 2024-12-09 21:46:59 +00:00 committed by lightningterror
parent 5dbaf194c5
commit e8dbcc31aa
1 changed files with 1 additions and 1 deletions

View File

@ -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<u32>(m_idx + size) > m_memory.size())
m_error = true;
if (m_error)