(x64) fixed MSVC "loss of precision" warning during RAM realloc

This commit is contained in:
unknown 2015-10-01 15:16:34 -04:00
parent f028d40910
commit 29ba2c095b
1 changed files with 6 additions and 1 deletions

View File

@ -5422,7 +5422,12 @@ void CMipsMemoryVM::RdramChanged ( CMipsMemoryVM * _this )
g_Notify -> FatalError(GS(MSG_MEM_ALLOC_ERROR));
}
}
_this->m_AllocatedRdramSize = new_size;
if (new_size > 0xFFFFFFFFul)
{ // should be unreachable because: size_t new_size = g_Settings->(DWORD)
g_Notify -> BreakPoint(__FILEW__, __LINE__);
} // ...However, FFFFFFFF also is a limit to RCP addressing, so we care.
_this->m_AllocatedRdramSize = (uint32_t)new_size;
}
void CMipsMemoryVM::ChangeSpStatus()