From 8a90cb40a69ec0a04d4cbdad50709c4f67f655f4 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 26 May 2014 09:06:52 -0500 Subject: [PATCH] Revert "lzx-compress.c: Disable verification by default" This reverts commit 5448b9cd60e9b1ebf4efcd2d1b2aac346b2e829c. Switched from libdivsufsort to libdivsufsort-lite; should be the same, but just in case I'm leaving verification on for the "slow" algorithm. --- src/lzx-compress.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lzx-compress.c b/src/lzx-compress.c index 308c7bf1..e1b65c7c 100644 --- a/src/lzx-compress.c +++ b/src/lzx-compress.c @@ -1592,7 +1592,11 @@ lzx_compress(const void *uncompressed_data, size_t uncompressed_size, * Although this could be disabled by default in all cases, it only * takes around 2-3% of the running time of the slow algorithm to do the * verification. */ -#if defined(ENABLE_LZX_DEBUG) || defined(ENABLE_VERIFY_COMPRESSION) + if (ctx->params.algorithm == WIMLIB_LZX_ALGORITHM_SLOW + #if defined(ENABLE_LZX_DEBUG) || defined(ENABLE_VERIFY_COMPRESSION) + || 1 + #endif + ) { struct wimlib_decompressor *decompressor; @@ -1626,7 +1630,6 @@ lzx_compress(const void *uncompressed_data, size_t uncompressed_size, "data verification!"); } } -#endif return compressed_size; } -- 2.43.0