From f57ff787aafc0ac20b489acd1ec4dc9d09193000 Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 17 May 2013 16:58:05 -0700 Subject: [PATCH] src: Remove superfluous static_cast --- src/string_bytes.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/string_bytes.cc b/src/string_bytes.cc index 90050dfcb51..5bf0a30e27e 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -556,8 +556,7 @@ Local StringBytes::Encode(const char* buf, Local val; switch (encoding) { case BUFFER: - return scope.Close( - Buffer::New(static_cast(buf), buflen)->handle_); + return scope.Close(Buffer::New(buf, buflen)->handle_); case ASCII: if (contains_non_ascii(buf, buflen)) {