Merge pull request #651 from cxd4/im-a-warning-ya-stranger

(x64) fixed MSVC "loss of precision" warning during RAM realloc
This commit is contained in:
zilmar 2015-10-06 08:41:30 +11:00
commit 5c8a772335
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)); 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() void CMipsMemoryVM::ChangeSpStatus()