Browse Source

src: Remove superfluous static_cast

v0.10.8-release
isaacs 12 years ago
parent
commit
f57ff787aa
  1. 3
      src/string_bytes.cc

3
src/string_bytes.cc

@ -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…
Cancel
Save