diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2019-03-26 13:06:36 +0100 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2019-03-27 12:59:51 +0100 |
| commit | cde1daff92c8a31b5c6cbd5362181f29f153e375 (patch) | |
| tree | 07980fecaef7d16b30b487f98fdd09d7323f12ba | |
| parent | d62321622a3bbff0633a55f6525d8d64887a0bb7 (diff) | |
| download | Project-Tick-cde1daff92c8a31b5c6cbd5362181f29f153e375.tar.gz Project-Tick-cde1daff92c8a31b5c6cbd5362181f29f153e375.zip | |
Fix endianness detection in memcopy.h
When memcopy.h is included into inffast.c, endianness-related
preperocessor defines are not set, which leads to
BYTE_ORDER == LITTLE_ENDIAN condition being always true. This breaks
decompression at least on s390x.
| -rw-r--r-- | memcopy.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4,6 +4,8 @@ #ifndef MEMCOPY_H_ #define MEMCOPY_H_ + #include "gzendian.h" + /* Load 64 bits from IN and place the bytes at offset BITS in the result. */ static inline uint64_t load_64_bits(const unsigned char *in, unsigned bits) { uint64_t chunk; |
