Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
zlib: replace C cast with static_cast
Browse files Browse the repository at this point in the history
Seems to have escaped the Eye of Sauron^WFedor in commit 8e29ce9.
  • Loading branch information
bnoordhuis committed Aug 14, 2013
1 parent c50750e commit dce02a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_zlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit dce02a1

Please sign in to comment.