projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77de207
)
src: Remove superfluous static_cast
author
isaacs
<i@izs.me>
Fri, 17 May 2013 23:58:05 +0000
(16:58 -0700)
committer
isaacs
<i@izs.me>
Fri, 17 May 2013 23:58:05 +0000
(16:58 -0700)
src/string_bytes.cc
patch
|
blob
|
history
diff --git
a/src/string_bytes.cc
b/src/string_bytes.cc
index
90050df
..
5bf0a30
100644
(file)
--- a/
src/string_bytes.cc
+++ b/
src/string_bytes.cc
@@
-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)) {