Make gif data little endian (#2712)

This commit is contained in:
Bhargava Shastry 2019-08-16 20:53:59 +02:00 committed by jonathanmetzman
parent 13f62b853d
commit f484147a22
1 changed files with 0 additions and 3 deletions

View File

@ -233,19 +233,16 @@ void ProtoConverter::writeByte(uint8_t x)
void ProtoConverter::writeWord(uint16_t x)
{
x = __builtin_bswap16(x);
m_output.write((char *)&x, sizeof(x));
}
void ProtoConverter::writeInt(uint32_t x)
{
x = __builtin_bswap32(x);
m_output.write((char *)&x, sizeof(x));
}
void ProtoConverter::writeLong(uint64_t x)
{
x = __builtin_bswap64(x);
m_output.write((char *)&x, sizeof(x));
}