From d1ade5a61dd54e4e59ab6c7d4f25b72071e2d210 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 8 Nov 2015 15:49:20 +0100 Subject: [PATCH] fix 32-bits mode --- lib/zstdhc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zstdhc.c b/lib/zstdhc.c index 76b9dcb1..6292f5d6 100644 --- a/lib/zstdhc.c +++ b/lib/zstdhc.c @@ -337,7 +337,7 @@ static U32 ZSTD_HC_insertBt1(ZSTD_HC_CCtx* zc, const BYTE* const ip, const U32 m const U32 windowLow = windowSize >= current ? 0 : current - windowSize; if ((current-matchIndex == 1) /* RLE */ - && ZSTD_read_ARCH(match) == ZSTD_read_ARCH(ip)) + && MEM_read64(match) == MEM_read64(ip)) { size_t rleLength = ZSTD_count(ip+sizeof(size_t), match+sizeof(size_t), iend) + sizeof(size_t); return (U32)(rleLength - mls);