mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fix some warnings
This commit is contained in:
parent
4905cd425f
commit
b83e39a540
@ -868,10 +868,10 @@ public:
|
|||||||
|
|
||||||
~named_thread_group() noexcept
|
~named_thread_group() noexcept
|
||||||
{
|
{
|
||||||
// Destroy all threads (it should join them)
|
// Destroy all threads in reverse order (it should join them)
|
||||||
for (u32 i = m_count - 1; i < m_count; i--)
|
for (u32 i = 0; i < m_count; i++)
|
||||||
{
|
{
|
||||||
std::launder(m_threads + i)->~Thread();
|
std::launder(m_threads + (m_count - i - 1))->~Thread();
|
||||||
}
|
}
|
||||||
|
|
||||||
::operator delete(static_cast<void*>(m_threads), std::align_val_t{alignof(Thread)});
|
::operator delete(static_cast<void*>(m_threads), std::align_val_t{alignof(Thread)});
|
||||||
|
@ -314,7 +314,7 @@ Function* PPUTranslator::GetSymbolResolver(const ppu_module& info)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
vec_addrs.push_back(f.addr - base);
|
vec_addrs.push_back(static_cast<u32>(f.addr - base));
|
||||||
functions.push_back(cast<Function>(m_module->getOrInsertFunction(fmt::format("__0x%x", f.addr - base), ftype).getCallee()));
|
functions.push_back(cast<Function>(m_module->getOrInsertFunction(fmt::format("__0x%x", f.addr - base), ftype).getCallee()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user