We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95dcd11 commit dc3c2d1Copy full SHA for dc3c2d1
src/node_zlib.cc
@@ -329,7 +329,7 @@ class ZCtx : public ObjectWrap {
329
int windowBits = args[0]->Uint32Value();
330
assert((windowBits >= 8 && windowBits <= 15) && "invalid windowBits");
331
332
- int level = args[1]->Uint32Value();
+ int level = args[1]->Int32Value();
333
assert((level >= -1 && level <= 9) && "invalid compression level");
334
335
int memLevel = args[2]->Uint32Value();
0 commit comments