0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

src: Remove superfluous static_cast

This commit is contained in:
isaacs 2013-05-17 16:58:05 -07:00
parent 77de207089
commit f57ff787aa

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