mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Use uptr (std::uintptr_t alias)
This commit is contained in:
parent
b59f142d4e
commit
a6a5292cd7
15 changed files with 62 additions and 62 deletions
|
@ -586,7 +586,7 @@ namespace utils
|
|||
const uint align = type->align;
|
||||
const uint ssize = ::align<uint>(sizeof(typemap_block), align) + ::align(type->size, align);
|
||||
const auto total = std::size_t{ssize} * type->count;
|
||||
const auto start = std::uintptr_t{::align(m_total, align)};
|
||||
const auto start = uptr{::align(m_total, align)};
|
||||
|
||||
if (total)
|
||||
{
|
||||
|
@ -612,7 +612,7 @@ namespace utils
|
|||
{
|
||||
if (m_map[i].m_count)
|
||||
{
|
||||
m_map[i].m_ptr = static_cast<uchar*>(m_memory) + reinterpret_cast<std::uintptr_t>(m_map[i].m_ptr);
|
||||
m_map[i].m_ptr = static_cast<uchar*>(m_memory) + reinterpret_cast<uptr>(m_map[i].m_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue