From dce02a10557f989385eb720c5032a8d1d77fa351 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 14 Aug 2013 23:49:29 +0200 Subject: [PATCH] zlib: replace C cast with static_cast Seems to have escaped the Eye of Sauron^WFedor in commit 8e29ce9. --- 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 d3720753fb..91bfb0dd3d 100644 --- 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(args[0]->Int32Value()); if (mode < DEFLATE || mode > UNZIP) { return ThrowTypeError("Bad argument");