MINGW64 fix

This commit is contained in:
Nekotekina 2015-11-26 11:13:33 +03:00
parent ca6783ba9a
commit 8a1ce6ba64
10 changed files with 51 additions and 30 deletions

View file

@ -365,7 +365,7 @@ public:
assert((m_buffer_size - m_offset) % sizeof(u32) == 0);
for (u32 i = 0; i < (m_buffer_size - m_offset) / sizeof(u32); i++)
{
vdata[i] = _byteswap_ulong(vdata[i]); // WTF, cannot use be_t<> there?
vdata[i] = se_storage<u32>::swap(vdata[i]); // WTF, cannot use be_t<> there?
}
for (u32 i = 0; i < prog.ucodeSize / sizeof(u32); i++)