src: Remove superfluous static_cast

pull/5010/head
isaacs 2013-05-17 16:58:05 -07:00
parent 77de207089
commit f57ff787aa
1 changed files with 1 additions and 2 deletions

View File

@ -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)) {