Skip to content

Commit f57ff78

Browse files
committed
src: Remove superfluous static_cast
1 parent 77de207 commit f57ff78

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/string_bytes.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,7 @@ Local<Value> StringBytes::Encode(const char* buf,
556556
Local<String> val;
557557
switch (encoding) {
558558
case BUFFER:
559-
return scope.Close(
560-
Buffer::New(static_cast<const char*>(buf), buflen)->handle_);
559+
return scope.Close(Buffer::New(buf, buflen)->handle_);
561560

562561
case ASCII:
563562
if (contains_non_ascii(buf, buflen)) {

0 commit comments

Comments
 (0)