diff options
author | isaacs <i@izs.me> | 2013-05-17 16:58:05 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-05-17 16:58:05 -0700 |
commit | f57ff787aafc0ac20b489acd1ec4dc9d09193000 (patch) | |
tree | 8f3d1377d642e4470483a351b2efd0c1d412fa5e /src/string_bytes.cc | |
parent | 77de20708935d33123ac97f135d90197db8e800c (diff) | |
download | android-node-v8-f57ff787aafc0ac20b489acd1ec4dc9d09193000.tar.gz android-node-v8-f57ff787aafc0ac20b489acd1ec4dc9d09193000.tar.bz2 android-node-v8-f57ff787aafc0ac20b489acd1ec4dc9d09193000.zip |
src: Remove superfluous static_cast
Diffstat (limited to 'src/string_bytes.cc')
-rw-r--r-- | src/string_bytes.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/string_bytes.cc b/src/string_bytes.cc index 90050dfcb5..5bf0a30e27 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -556,8 +556,7 @@ Local<Value> StringBytes::Encode(const char* buf, Local<String> val; switch (encoding) { case BUFFER: - return scope.Close( - Buffer::New(static_cast<const char*>(buf), buflen)->handle_); + return scope.Close(Buffer::New(buf, buflen)->handle_); case ASCII: if (contains_non_ascii(buf, buflen)) { |