Update bele.h to better work with modern compilers.

This commit is contained in:
Markus F.X.J. Oberhumer
2021-01-02 16:45:58 +01:00
parent 57cb6a7530
commit d045b7f223
11 changed files with 286 additions and 214 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ void Packer::defineDecompressorSymbols()
(res->lit_pos_bits << 8) |
(res->pos_bits << 16);
if (linker->bele->isBE()) // big endian - bswap32
acc_swab32s(&properties);
properties = bswap32(properties);
linker->defineSymbol("lzma_properties", properties);
// len - 2 because of properties