mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 16:31:30 -06:00
Fix a bunch of warnings.
This commit is contained in:
@@ -20,7 +20,7 @@ void CodeCache::Init()
|
||||
if (PPCFuncMappings[i].host != nullptr)
|
||||
{
|
||||
VirtualAlloc(bucket + PPCFuncMappings[i].guest * 2, sizeof(void*), MEM_COMMIT, PAGE_READWRITE);
|
||||
*(void**)(bucket + PPCFuncMappings[i].guest * 2) = PPCFuncMappings[i].host;
|
||||
*(void**)(bucket + PPCFuncMappings[i].guest * 2) = (void*)PPCFuncMappings[i].host;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -38,10 +38,10 @@ void* CodeCache::Find(uint32_t guest) const
|
||||
|
||||
SWA_API PPCFunc* KeFindHostFunction(uint32_t guest)
|
||||
{
|
||||
return static_cast<PPCFunc*>(g_codeCache.Find(guest));
|
||||
return reinterpret_cast<PPCFunc*>(g_codeCache.Find(guest));
|
||||
}
|
||||
|
||||
SWA_API void KeInsertHostFunction(uint32_t guest, PPCFunc* function)
|
||||
{
|
||||
g_codeCache.Insert(guest, function);
|
||||
g_codeCache.Insert(guest, (const void*)function);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user