From 36aa8b59993e18a8759a11c3302530a715444986 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 1 Sep 2017 11:40:59 -0700 Subject: [PATCH] improved decoding speed --- lib/decompress/zstd_decompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 436f817a7..bc8f93851 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -1281,7 +1281,7 @@ static size_t ZSTD_decompressSequencesLong( int nbSeq; unsigned long long const regularWindowSizeMax = 1ULL << STREAM_ACCUMULATOR_MIN; - ZSTD_longOffset_e const isLongOffset = (ZSTD_longOffset_e)(dctx->fParams.windowSize >= regularWindowSizeMax); + ZSTD_longOffset_e const isLongOffset = (ZSTD_longOffset_e)(MEM_32bits() && (dctx->fParams.windowSize >= regularWindowSizeMax)); ZSTD_STATIC_ASSERT(ZSTD_lo_isLongOffset == 1); /* Build Decoding Tables */