mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
zlib: level can be negative
This commit is contained in:
1 parent
c9644fbd7c
commit
e945903671
1 file changed
+1
-1
+1
-1
@@ -330,7 +330,7 @@ class ZCtx : public ObjectWrap {
|
||||
int windowBits = args[0]->Uint32Value();
|
||||
assert((windowBits >= 8 && windowBits <= 15) && "invalid windowBits");
|
||||
|
||||
int level = args[1]->Uint32Value();
|
||||
int level = args[1]->Int32Value();
|
||||
assert((level >= -1 && level <= 9) && "invalid compression level");
|
||||
|
||||
int memLevel = args[2]->Uint32Value();
|
||||
|
||||
Reference in new issue
Block a user