Fix BE endianess arch support in semaphore_406e (#6116)

Add raw() methods for endianness support types and make use of it.
This commit is contained in:
Eladash 2019-06-21 19:29:49 +03:00 committed by Ivan
parent ade291e73d
commit cd0ef99df5
6 changed files with 32 additions and 25 deletions

View file

@ -228,7 +228,8 @@ void CgBinaryDisasm::TaskFP()
verify(HERE), ((m_buffer_size - m_offset) % sizeof(u32) == 0);
for (u32 i = 0; i < (m_buffer_size - m_offset) / sizeof(u32); i++)
{
data[i] = se_storage<u32>::swap(data[i]); // WTF, cannot use be_t<> there?
// Get BE data
data[i] = be_t<u32>{data[i]}.raw();
}
enum