applied patch: Some endian-conditional functions had incorrect signatures on BE hosts.

This commit is contained in:
Stanislav Shwartsman 2019-12-07 06:10:30 +00:00
parent c7fdf6d428
commit aaa18f5384

View File

@ -627,12 +627,12 @@ BX_CPP_INLINE void WriteHostWordToLittleEndian(Bit16u *hostPtr, Bit16u nativeVar
*(hostPtr) = bx_bswap16(nativeVar16);
}
BX_CPP_INLINE void WriteHostDWordToLittleEndian(Bit8u *hostPtr, Bit32u nativeVar32)
BX_CPP_INLINE void WriteHostDWordToLittleEndian(Bit32u *hostPtr, Bit32u nativeVar32)
{
*(hostPtr) = bx_bswap32(nativeVar32);
}
BX_CPP_INLINE void WriteHostQWordToLittleEndian(Bit8u *hostPtr, Bit64u nativeVar64)
BX_CPP_INLINE void WriteHostQWordToLittleEndian(Bit64u *hostPtr, Bit64u nativeVar64)
{
*(hostPtr) = bx_bswap64(nativeVar64);
}