mirror of https://github.com/nodejs/node.git
src: Remove superfluous static_cast
parent
77de207089
commit
f57ff787aa
|
@ -556,8 +556,7 @@ Local<Value> StringBytes::Encode(const char* buf,
|
||||||
Local<String> val;
|
Local<String> val;
|
||||||
switch (encoding) {
|
switch (encoding) {
|
||||||
case BUFFER:
|
case BUFFER:
|
||||||
return scope.Close(
|
return scope.Close(Buffer::New(buf, buflen)->handle_);
|
||||||
Buffer::New(static_cast<const char*>(buf), buflen)->handle_);
|
|
||||||
|
|
||||||
case ASCII:
|
case ASCII:
|
||||||
if (contains_non_ascii(buf, buflen)) {
|
if (contains_non_ascii(buf, buflen)) {
|
||||||
|
|
Loading…
Reference in New Issue