From e945903671354467bece2948c2c6c7ed2a8300cd Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 1 Jul 2013 05:42:36 -0400 Subject: [PATCH] zlib: level can be negative --- src/node_zlib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 84f1854060..229dacb69f 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -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();