Skip to content

Commit c8c290a

Browse files
XadillaXtargos
authored andcommitted
src,zlib: tighten up Z_*_WINDOWBITS macros
PR-URL: #39115 Reviewed-By: Anna Henningsen <[email protected]>
1 parent 2629979 commit c8c290a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/node_internals.h

-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@
3939
#include <string>
4040
#include <vector>
4141

42-
// Custom constants used by both node_constants.cc and node_zlib.cc
43-
#define Z_MIN_WINDOWBITS 8
44-
#define Z_MAX_WINDOWBITS 15
45-
#define Z_DEFAULT_WINDOWBITS 15
46-
4742
struct sockaddr;
4843

4944
namespace node {

src/node_zlib.cc

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ namespace {
7171
#define Z_MIN_LEVEL -1
7272
#define Z_MAX_LEVEL 9
7373
#define Z_DEFAULT_LEVEL Z_DEFAULT_COMPRESSION
74+
#define Z_MIN_WINDOWBITS 8
75+
#define Z_MAX_WINDOWBITS 15
76+
#define Z_DEFAULT_WINDOWBITS 15
7477

7578
#define ZLIB_ERROR_CODES(V) \
7679
V(Z_OK) \

0 commit comments

Comments
 (0)