]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fix "RLE" compression with big endian architectures
authorAdam Stylinski <kungfujesus06@gmail.com>
Sat, 21 Dec 2024 15:09:58 +0000 (10:09 -0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 22 Dec 2024 00:44:23 +0000 (01:44 +0100)
commit90913e8d05f0a8d77366be57107514c5e203f702
treeb5b6640ee78cbff1b82e43188590b596895d5603
parent04d1b758194099bad80f5769610f2679499e135f
Fix "RLE" compression with big endian architectures

This was missed in #1831. The RLE methods compare a string of bytes
directly with itself to directly derive a simple run length encoding.
They use similar but not identical methods to compare256. This needs
a similar endianness check at compile time to know which compare bit
count to use (leading or trailing).
compare256_rle.h