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:
c50750e
)
zlib: replace C cast with static_cast
author
Ben Noordhuis
<info@bnoordhuis.nl>
Wed, 14 Aug 2013 21:49:29 +0000
(23:49 +0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Wed, 14 Aug 2013 21:50:08 +0000
(23:50 +0200)
Seems to have escaped the Eye of Sauron^WFedor in commit 8e29ce9.
src/node_zlib.cc
patch
|
blob
|
history
diff --git
a/src/node_zlib.cc
b/src/node_zlib.cc
index
d372075
..
91bfb0d
100644
(file)
--- a/
src/node_zlib.cc
+++ b/
src/node_zlib.cc
@@
-309,7
+309,7
@@
class ZCtx : public ObjectWrap {
if (args.Length() < 1 || !args[0]->IsInt32()) {
return ThrowTypeError("Bad argument");
}
- node_zlib_mode mode =
(node_zlib_mode) args[0]->Int32Value(
);
+ node_zlib_mode mode =
static_cast<node_zlib_mode>(args[0]->Int32Value()
);
if (mode < DEFLATE || mode > UNZIP) {
return ThrowTypeError("Bad argument");