projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95dcd11
)
zlib: level can be negative
author
Brian White
<mscdex@mscdex.net>
Mon, 1 Jul 2013 09:42:36 +0000
(
05:42
-0400)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Mon, 1 Jul 2013 17:37:50 +0000
(19:37 +0200)
This is a back-port of commit e945903 from the master branch.
src/node_zlib.cc
patch
|
blob
|
history
diff --git
a/src/node_zlib.cc
b/src/node_zlib.cc
index
ebaba6b
..
9acbfcb
100644
(file)
--- a/
src/node_zlib.cc
+++ b/
src/node_zlib.cc
@@
-329,7
+329,7
@@
class ZCtx : public ObjectWrap {
int windowBits = args[0]->Uint32Value();
assert((windowBits >= 8 && windowBits <= 15) && "invalid windowBits");
- int level = args[1]->
Ui
nt32Value();
+ int level = args[1]->
I
nt32Value();
assert((level >= -1 && level <= 9) && "invalid compression level");
int memLevel = args[2]->Uint32Value();