From: Hans Kristian Rosbach Date: Fri, 26 Mar 2021 16:06:28 +0000 (+0100) Subject: Reorder config table to avoid double negation, and to use the same X-Git-Tag: 2.1.0-beta1~581 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb41bf416dee72972c12fbb264d3d50d3976d2e7;p=thirdparty%2Fzlib-ng.git Reorder config table to avoid double negation, and to use the same logical ordering as the other ifdef. --- diff --git a/deflate.c b/deflate.c index 076b05f1..dd1f120c 100644 --- a/deflate.c +++ b/deflate.c @@ -143,12 +143,12 @@ static const config configuration_table[10] = { /* good lazy nice chain */ /* 0 */ {0, 0, 0, 0, deflate_stored}, /* store only */ -#ifndef NO_QUICK_STRATEGY -/* 1 */ {0, 0, 0, 0, deflate_quick}, -/* 2 */ {4, 4, 8, 4, deflate_fast}, /* max speed, no lazy matches */ -#else +#ifdef NO_QUICK_STRATEGY /* 1 */ {4, 4, 8, 4, deflate_fast}, /* max speed, no lazy matches */ /* 2 */ {4, 5, 16, 8, deflate_fast}, +#else +/* 1 */ {0, 0, 0, 0, deflate_quick}, +/* 2 */ {4, 4, 8, 4, deflate_fast}, /* max speed, no lazy matches */ #endif #ifdef NO_MEDIUM_STRATEGY