Browse Source

zlib: replace C cast with static_cast

Seems to have escaped the Eye of Sauron^WFedor in commit 8e29ce9.
v0.11.6-release
Ben Noordhuis 12 years ago
parent
commit
dce02a1055
  1. 2
      src/node_zlib.cc

2
src/node_zlib.cc

@ -309,7 +309,7 @@ class ZCtx : public ObjectWrap {
if (args.Length() < 1 || !args[0]->IsInt32()) { if (args.Length() < 1 || !args[0]->IsInt32()) {
return ThrowTypeError("Bad argument"); 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) { if (mode < DEFLATE || mode > UNZIP) {
return ThrowTypeError("Bad argument"); return ThrowTypeError("Bad argument");

Loading…
Cancel
Save